mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:17:59 +01:00
Fix buffer.getCurrentWord when the selection is collapsed and the word has punctuation.
This commit is contained in:
@@ -985,6 +985,7 @@ function Buffer() //{{{
|
||||
selController.wordMove(false, false);
|
||||
selController.wordMove(true, true);
|
||||
selController.setCaretEnabled(caretmode);
|
||||
return String.match(selection, /\w*/)[0];
|
||||
}
|
||||
let range = selection.getRangeAt(0);
|
||||
if (util.computedStyle(range.startContainer).whiteSpace == "pre"
|
||||
|
||||
Reference in New Issue
Block a user