1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-21 21:35:48 +01:00

Change buffer.getCurrentWord() to a read-only property buffer.currentWord.

This commit is contained in:
Doug Kearns
2010-09-23 20:03:26 +10:00
parent defa81b3d5
commit b6b0d5b427
3 changed files with 8 additions and 6 deletions

View File

@@ -195,14 +195,14 @@ const RangeFinder = Module("rangefinder", {
"Find word under cursor",
function () {
rangefinder._found = false;
rangefinder.onSubmit(buffer.getCurrentWord(), false);
rangefinder.onSubmit(buffer.currentWord, false);
});
mappings.add(myModes.concat([modes.CARET, modes.TEXTAREA]), ["#"],
"Find word under cursor backwards",
function () {
rangefinder._found = false;
rangefinder.onSubmit(buffer.getCurrentWord(), true);
rangefinder.onSubmit(buffer.currentWord, true);
});
},