Embarcadero / Dev-Cpp

A fast, portable, simple, and free C/C++ IDE
https://www.embarcadero.com/free-tools/dev-cpp
GNU General Public License v2.0
2.53k stars 276 forks source link

Ctrl Z gives an unexpected error and randomly removes closing bracket #183

Open AnataBakka opened 2 years ago

AnataBakka commented 2 years ago

version 6.3.

manually type something like SNAG-1463

and then do ctrl z. After a few ctrl z-s the editor will prematurely remove the closing bracket of void main(), and after further ctrl z-s it will show up with this error SNAG-1469

you can close the error and continue ctrl z-ing, until eventually the error pops up again, and again, and again...

another issue seems to be happening with ctrl y. first undo everything with ctrl z. then ctrl y and you will sometimes get stuff like this SNAG-1470

if it doesn't happen just undo back, and ctrl y again, until it eventually happens

blueskychat commented 2 years ago

I have got the same problem too. It bothers me a lot.

AnataBakka commented 10 months ago

note: from what i've observed the above undo seems to break because of the automatic indent. disabling these options seems, so far, to make it safe enough to undo image