Community
Participate
Working Groups
Created attachment 286769 [details] Example project Hello. I have some troubles with Eclipse command "Previous Edit Location". This command in some cases does not open text editor with last edit. For reproducing: 1) Open attached project 2) Open file "t1" and add any symbol to 1st line 3) Open file "t2" and add any symbol to 3rd line 4) Open file "t3" and add any symbol to 5th line 5) Open file "t4" and add any symbol to 15th line 6) Save changes in editor for "t4" and close it 7) Call command "Previous Edit Location". I suppose that editor for "t4" will be opened but activate editor for "t1" I can reproduce that in Eclipse 2020-12 (4.18) and 2021-06 (4.20.0) PS. I think, that problem at org.eclipse.ui.texteditor.AbstractTextEditor.TextListener.inputDocumentAboutToBeChanged(IDocument, IDocument) and org.eclipse.ui.texteditor.AbstractTextEditor.TextListener.discardHistoryFor(IDocument) In this methods, calling when editor close, method "org.eclipse.ui.internal.texteditor.HistoryTracker.browseBackward()" is called in cycle
Maksim, thanks for report. Do you want to provide a patch? https://wiki.eclipse.org/Platform/How_to_Contribute
@Ari, Lars: please check this, also see bug 567321 which seem to be related.
This is exact duplicate of bug 567321 comment 3. But the example here is clearer to understand, thanks. *** This bug has been marked as a duplicate of bug 567321 ***