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", {
87
87
pattern = pattern . replace ( / \\ ( \\ [ c C l L ] ) / g, "$1" ) ;
88
88
89
89
findbar . _findField . value = pattern ;
90
+ this . _lastSearchPattern = pattern ;
90
91
} ,
91
92
92
93
/**
@@ -164,9 +165,12 @@ var Finder = Module("finder", {
164
165
*/
165
166
findAgain : function ( reverse ) {
166
167
// Nothing to find?
167
- if ( ! this . findbarInitialized || ! this . findbar . _findField . value )
168
+ if ( ! this . _lastSearchPattern )
168
169
return ;
169
170
171
+ if ( this . _lastSearchPattern != this . findbar . _findField . value )
172
+ this . _processUserPattern ( this . _searchPattern ) ;
173
+
170
174
this . findbar . onFindAgainCommand ( reverse ) ;
171
175
} ,
172
176
@@ -220,8 +224,6 @@ var Finder = Module("finder", {
220
224
this . find ( pattern ) ;
221
225
}
222
226
223
- this . _lastSearchPattern = pattern ;
224
-
225
227
// TODO: move to find() when reverse incremental searching is kludged in
226
228
// need to find again for reverse searching
227
229
if ( this . _backwards )
You can’t perform that action at this time.
0 commit comments