mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Replace: never repair old cursor position after replacement, just go ahead.
This commit is contained in:
@@ -292,7 +292,7 @@ public class SearchResults implements DocumentListener {
|
||||
boolean justReplaced = next != null;
|
||||
boolean toPush = true;
|
||||
if (justReplaced || (toPush = !repairCursorFromStack())) {
|
||||
if (!tryToRepairOldCursor(oldCursorRange)) {
|
||||
if (justReplaced || !tryToRepairOldCursor(oldCursorRange)) {
|
||||
if (myFindModel != null) {
|
||||
if(oldCursorRange != null && !myFindModel.isGlobal()) {
|
||||
myCursor = firstOccurrenceAfterOffset(oldCursorRange.getEndOffset());
|
||||
|
||||
Reference in New Issue
Block a user