Alexey-T / CudaText

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

"Replace All" break syntax highlighting especially comments #5548

Closed ThaiDat closed 2 weeks ago

ThaiDat commented 2 weeks ago

Repro steps:

  1. Write some code
  2. Add some comment
  3. Ctrl+H to open Find&Replace bottom pane
  4. Type something that occurs more than 1 to the find text box
  5. Type other text to replace text box
  6. Hit Replace All button

Observed: Syntax highlighting for line(s) that have replacement(s) break

https://github.com/Alexey-T/CudaText/assets/18527312/ca5f5856-48a6-4404-b73d-2c7371680f98

Alexey-T commented 2 weeks ago

Reproduced, when replacing 'o' with 'Ooo' , even w/o calling Comment commands.

Alexey-T commented 2 weeks ago

Fixed, published version 1.214.7.2.

It is regression since 1.211 (reworking of mass replacing, for many matches in huge lines).