Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.39k stars 166 forks source link

Caret at wrong position after replace-all #5534

Closed pintassilgo closed 1 month ago

pintassilgo commented 1 month ago
test 1234
  1. Copy this, paste in new document, so that caret is after 4.
  2. Press Ctrl+R to open Replace bar.
  3. Paste 1234 and press "Rep all" (to replace with nothing i.e. just delete occurrences).
  4. Press Esc to return focus to document.

Expected: caret should be after t (the last char of "test"), because everything after that was removed.

Current: caret is still at column 10. image

Alexey-T commented 1 month ago

Thanks, fixed.