Page 1 of 1

Undo ENTER

Posted: Mon Mar 03, 2014 8:54 am
by coco2
Windows 7 x64
PB 5.21 x64

If you press ENTER halfway through a line (usually accidentally) then try to undo with Ctrl+Z it doesn't undo correctly.

Before:
pos=FindString(uri, "//")

(place cursor for example after the = symbol and press ENTER)

During:
pos=
FindString(uri, "//")

(undo this accidental ENTER by pressing CTRL+Z)

After:
pos=
FindString(uri, "//")

Cursor returns to previous line (after the = symbol) but the "FindString" part doesn't move back to where it was.

Re: Undo ENTER

Posted: Mon Mar 03, 2014 9:42 am
by Bananenfreak
+1. This worried me more than once.

Sry, I thought this was the Wishlistsection. Anyway, Confirmed ^^

Re: Undo ENTER

Posted: Mon Mar 03, 2014 10:25 am
by PB
> the "FindString" part doesn't move back to where it was

It works correctly here, although I'm using the 32-bit version on a 64-bit Win 7.

Re: Undo ENTER

Posted: Mon Mar 03, 2014 5:43 pm
by skywalk
Did you try hitting [Ctrl+z] multiple times?
Works on x86.

Re: Undo ENTER

Posted: Mon Mar 03, 2014 10:56 pm
by coco2
It works correctly if I press CTRL+Z twice. Is this intended?

Re: Undo ENTER

Posted: Mon Mar 03, 2014 10:59 pm
by skywalk
Yes, it is a per character history. Request your topic is moved out of Bugs.

Re: Undo ENTER

Posted: Mon Mar 03, 2014 11:03 pm
by PB
For me I just hit Ctrl+Z once to restore the line. Not per character.

Re: Undo ENTER

Posted: Mon Mar 03, 2014 11:38 pm
by coco2
It will also remove any auto-indentation on the first CTRL+Z. Per character? Surely this is not desirable?