From bf20ceb6e804e28187dbf900904662d3b5909cdc Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 1 Feb 2015 16:20:28 +0000 Subject: Refactor (simplify) find mode. --- content_scripts/vimium_frontend.coffee | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'content_scripts') 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) # sends us into insert mode if possible, but does not. # corresponds approximately to 'nevermind, I have found it already' while means 'I want to save -- cgit v1.2.3