mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 00:47:59 +01:00
Hint mode: Don't be discouraged by a document's lack of a body. Closes issue #40.
--HG-- extra : rebase_source : dfdf9cf61af76aa84841ff181f42afcf318bce6d
This commit is contained in:
@@ -108,6 +108,7 @@ install:
|
||||
for dir in $(PROFILEPATHS); do \
|
||||
test -f "$$dir/profiles.ini" && break; \
|
||||
done; \
|
||||
\
|
||||
profile=$$(sed 's/^$$/\#/' "$$dir/profiles.ini" | \
|
||||
awk -v"profile=$(PROFILE)" \
|
||||
'BEGIN { RS="#" } \
|
||||
@@ -120,13 +121,14 @@ install:
|
||||
if (args["IsRelative"]) print ENVIRON["dir"] "/" args["Path"]; \
|
||||
else print args["Path"] \
|
||||
}'); \
|
||||
\
|
||||
if ! test -d "$$profile"; then \
|
||||
echo >&2 "Can't locate profile directory"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
\
|
||||
ext="$$profile/extensions/$(UUID)"; \
|
||||
rm -f "$$ext.xpi"; \
|
||||
rm -rf "$$ext"; \
|
||||
rm -rf "$$ext.xpi" "$$ext"; \
|
||||
echo "Installing to $$ext"; \
|
||||
if which cygpath >/dev/null 2>&1; \
|
||||
then cygpath -wa .; \
|
||||
|
||||
@@ -624,7 +624,6 @@ const Editor = Module("editor", {
|
||||
mappings.add([modes.INSERT],
|
||||
["<Tab>"], "Expand insert mode abbreviation",
|
||||
function () {
|
||||
util.dumpStack("\n\n\n<Tab>");
|
||||
editor.expandAbbreviation(modes.INSERT);
|
||||
document.commandDispatcher.advanceFocus();
|
||||
});
|
||||
|
||||
@@ -263,8 +263,6 @@ const Hints = Module("hints", {
|
||||
win = this._top;
|
||||
|
||||
let doc = win.document;
|
||||
if (!doc.body && !doc.document)
|
||||
return;
|
||||
|
||||
let [offsetX, offsetY] = this._getContainerOffsets(doc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user