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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user