User forums > General (but related to Code::Blocks)

Bug Report: Undo performs several changes at once

<< < (2/3) > >>

oBFusCATed:
My guess is that you've never noticed it for plain text files :)

damian_reloaded:
There must be something else going on besides that example because I'm currently coding and sometimes the Undo will erase entire blocks of typed code. This I can bet my life wasn't happening a few months ago...

Do you know from the top of your head if any plugin taps with the Undo feature?

oBFusCATed:
I don't think so. The scintilla component hasn't been updated recently, either.

oBFusCATed:
You'll have to do a bisect on the night builds to find out where this behaviour started.

damian_reloaded:
I think I'm going crazy.

I just opened notepad++ and it behaves the same way, example:

hello world [enter]
[enter]
testing bug [enter]
[enter]
asdf [backspace] [backspace] [backspace] [backspace]
hello
[ctrl-z] (erases the word "hello")
[ctrl-z] (restores the word "asdf")
[ctrl-z] (clears the entire editor to blank)

At this point I'm freaking out, so I open a virtual machine with Windows XP and run Wordpad:
hello world [enter]
[enter]
testing bug [enter]
[enter]
asdf [backspace] [backspace] [backspace] [backspace]
hello
[ctrl-z] (erases EVERYTHING)

Then Visual Studio behaves as I remember undo used to work (last year I've been working with visual studio mostly which might be the cause of my confusion?)

hello world [enter]
[enter]
testing bug [enter]
[enter]
asdf [backspace] [backspace] [backspace] [backspace]
hello
[ctrl-z] (erases the word "hello")
[ctrl-z] (restores character "a")
[ctrl-z] (restores character "s")
[ctrl-z] (restores character "d")
[ctrl-z] (restores character "f")
[ctrl-z] (erases word "asdf")
[ctrl-z] (erases new line)
[ctrl-z] (erases new line)
[ctrl-z] (erases phrase "testing bug")
[ctrl-z] (erases new line)
[ctrl-z] (erases new line)
[ctrl-z] (erases phrase "hello world")

Open Office Writer undo function seems to work on a character basis so ctrl-z will erase the last character

Apparently it's not an issue with Code::Blocks. Is this how Code::Blocks works for you? Maybe it's a locale or a keyboard issue? I'm bafled. :/

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version