File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,12 @@ var Finder = Module("finder", {
176
176
*/
177
177
onFindResult : function ( aData ) {
178
178
if ( aData . result == Ci . nsITypeAheadFind . FIND_NOTFOUND ) {
179
- liberator . echoerr ( "Pattern not found: " + aData . searchString , commandline . FORCE_SINGLELINE ) ;
179
+ // Don't use aData.searchString, it may be a substring of the
180
+ // user's actual input text and that can be confusing.
181
+ // See https://github.com/vimperator/vimperator-labs/issues/401#issuecomment-180522987
182
+ // for an example.
183
+ let searchString = this . findbar . _findField . value ;
184
+ liberator . echoerr ( "Pattern not found: " + searchString , commandline . FORCE_SINGLELINE ) ;
180
185
}
181
186
else if ( aData . result == Ci . nsITypeAheadFind . FIND_WRAPPED ) {
182
187
let msg = aData . findBackwards ? "Search hit TOP, continuing at BOTTOM" : "Search hit BOTTOM, continuing at TOP" ;
You can’t perform that action at this time.
0 commit comments