File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ var Finder = Module("finder", {
8787 pattern = pattern . replace ( / \\ ( \\ [ c C l L ] ) / g, "$1" ) ;
8888
8989 findbar . _findField . value = pattern ;
90+ this . _lastSearchPattern = pattern ;
9091 } ,
9192
9293 /**
@@ -164,9 +165,12 @@ var Finder = Module("finder", {
164165 */
165166 findAgain : function ( reverse ) {
166167 // Nothing to find?
167- if ( ! this . findbarInitialized || ! this . findbar . _findField . value )
168+ if ( ! this . _lastSearchPattern )
168169 return ;
169170
171+ if ( this . _lastSearchPattern != this . findbar . _findField . value )
172+ this . _processUserPattern ( this . _searchPattern ) ;
173+
170174 this . findbar . onFindAgainCommand ( reverse ) ;
171175 } ,
172176
@@ -220,8 +224,6 @@ var Finder = Module("finder", {
220224 this . find ( pattern ) ;
221225 }
222226
223- this . _lastSearchPattern = pattern ;
224-
225227 // TODO: move to find() when reverse incremental searching is kludged in
226228 // need to find again for reverse searching
227229 if ( this . _backwards )
You can’t perform that action at this time.
0 commit comments