mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
Merge pull request #1659 from ltGuillaume/master
Autocomplete selection: wrap movement
This commit is contained in:
commit
01820cc04d
@ -219,9 +219,9 @@ void AutoComplete::Move(int delta) {
|
||||
int current = lb->GetSelection();
|
||||
current += delta;
|
||||
if (current >= count)
|
||||
current = count - 1;
|
||||
current = (current == count ? 0 : count - 1);
|
||||
if (current < 0)
|
||||
current = 0;
|
||||
current = (current == -1 ? count - 1 : 0);
|
||||
lb->Select(current);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user