diff options
| author | Stephen Blott | 2015-02-01 16:20:28 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-02-01 16:20:28 +0000 |
| commit | bf20ceb6e804e28187dbf900904662d3b5909cdc (patch) | |
| tree | 1bd3ebdaf068e88e88a275bdb5d2b82d0a6191b2 | |
| parent | 90444bebf9478408c8332a898e7c404d0a62841f (diff) | |
| download | vimium-bf20ceb6e804e28187dbf900904662d3b5909cdc.tar.bz2 | |
Refactor (simplify) find mode.
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 2dcd3d9b..ce8ad1ae 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -762,10 +762,7 @@ handleDeleteForFindMode = -> exitFindMode() performFindInPlace() else - findModeQuery.rawQuery = findModeQuery.rawQuery.substring(0, findModeQuery.rawQuery.length - 1) - updateFindModeQuery() - performFindInPlace() - showFindModeHUDForQuery() + updateQueryForFindMode findModeQuery.rawQuery.substring(0, findModeQuery.rawQuery.length - 1) # <esc> sends us into insert mode if possible, but <cr> does not. # <esc> corresponds approximately to 'nevermind, I have found it already' while <cr> means 'I want to save |
