Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2462 Separate 'wrap around' option for IDM_SEARCH_SETANDFINDNEXT(PREVIOUS)

Next_Release
open
nobody
None
5
2014-07-07
2014-07-02
Ole Jungclaussen
No

Current Status: IDM_SEARCH_SETANDFINDNEXT behaves according to the "Wrap around" setting in the FindReplaceDlg.
Proposal: Give IDM_SEARCH_SETANDFINDNEXT(PREVIOUS) its own setting for wrap around.
Reasoning: Real searches may not be wished to wrap around, but when using Ctrl+F3 to quickly jump to all occurences in the document wrap around is desirable.

Code Example just enables "Wrap Around" temporarily:

NppCommand.cpp (6.6.7)
+ 673: bool wasWrapAround = false;
+ 688: if(false==(wasWrapAround = op._isWrapAround)) op._isWrapAround = true;
+ 696: op._isWrapAround = wasWrapAround;

Discussion