1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 00:32:27 +01:00

Fix 'Y' to not falsely show the caret if we're not in caret mode, thanks for the patch to John-Galt

This commit is contained in:
Daniel Bainton
2008-08-30 19:32:16 +00:00
parent 8742e8050b
commit 6353b76f6d

View File

@@ -678,10 +678,12 @@ liberator.Buffer = function () //{{{
.getInterface(Components.interfaces.nsISelectionDisplay)
.QueryInterface(Components.interfaces.nsISelectionController);
var caretmode = selectionController.getCaretEnabled();
selectionController.setCaretEnabled(true);
selectionController.wordMove(false, false);
selectionController.wordMove(true, true);
selection = window.content.getSelection().toString();
selectionController.setCaretEnabled(caretmode);
}
return selection;