mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 16:12:26 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user