Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.14k stars 299 forks source link

Edit cursor moves one character to right after undoing Replace in "Open files" #3920

Open mjross opened 3 years ago

mjross commented 3 years ago

Summary

Replacing text in all open files and then undoing that action, causes the edit cursor to move one character to the right.

Steps to Reproduce

Help > Troubleshooting > Restart in Safe-Mode. Open two or more text files containing at least some characters that can be changed with an "Open files" replacement operation. Verify that the edit cursor in each file is located at the beginning of the file (first column on first line). Edit > Replace > set Where = Open files, click Replace All. Edit > Undo.

Expected Results

I expected that the Undo operation would restore the changed text to its original values, which it does, but not change the location of the edit cursor in each file.

Actual Results

The changed text is restored to its original values, but in every file the edit cursor is moved one character to the right. Admittedly, this isn't a big problem, but rather annoying when I don't notice the unexpected change and start typing, thinking that I'm at the very beginning of the file.

Platform Information

Komodo IDE 11.1.1 build 91089 (on Windows Home 10.0.19041.746)

Attachments

Two text files for testing. Screenshots. test file 1.txt test file 2.txt Clipboard01 Clipboard02 Clipboard03 Clipboard04 Clipboard05 Clipboard06

th3coop commented 3 years ago

@thanks for reporting @mjross