Ticket #3517: 3517_2.patch
File 3517_2.patch, 1.0 KB (added by , 14 years ago) |
---|
-
_source/plugins/find/dialogs/find.js
425 425 var finder = { 426 426 searchRange : null, 427 427 matchRange : null, 428 find : function( pattern, matchCase, matchWord, matchCyclic, highlightMatched )428 find : function( pattern, matchCase, matchWord, matchCyclic, highlightMatched, cyclicRerun ) 429 429 { 430 430 if( !this.matchRange ) 431 431 this.matchRange = … … 480 480 this.matchRange.removeHighlight(); 481 481 // Clear current session and restart with the default search 482 482 // range. 483 if ( matchCyclic ) 483 // Re-run the finding once for cyclic.(#3517) 484 if ( matchCyclic && !cyclicRerun ) 484 485 { 485 486 this.searchRange = getSearchRange( true ); 486 487 this.matchRange = null; 488 return arguments.callee.apply( this, 489 Array.prototype.slice.call( arguments ).concat( [ true ] ) ); 487 490 } 488 491 489 492 return false;