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

add 'incsearch' option

This commit is contained in:
Doug Kearns
2007-09-03 19:43:42 +00:00
parent 6d33284a76
commit 127dbd42cc
2 changed files with 10 additions and 1 deletions

View File

@@ -111,7 +111,10 @@ function Search() //{{{
// Called when the user types a key in the search dialog. Triggers a find attempt
this.searchKeyPressed = function(command)
{
// TODO: check for 'incsearch'
if (!vimperator.options['incsearch'])
return;
// FIXME: isn't the global already set here? -- djk
var backward = vimperator.hasMode(vimperator.modes.SEARCH_BACKWARD);
this.find(command, backward);
}