Undo ENTER

Post bugs related to the IDE here
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Undo ENTER

Post 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.
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: Undo ENTER

Post by Bananenfreak »

+1. This worried me more than once.

Sry, I thought this was the Wishlistsection. Anyway, Confirmed ^^
Image
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Undo ENTER

Post 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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
skywalk
Addict
Addict
Posts: 4004
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Undo ENTER

Post by skywalk »

Did you try hitting [Ctrl+z] multiple times?
Works on x86.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: Undo ENTER

Post by coco2 »

It works correctly if I press CTRL+Z twice. Is this intended?
User avatar
skywalk
Addict
Addict
Posts: 4004
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Undo ENTER

Post by skywalk »

Yes, it is a per character history. Request your topic is moved out of Bugs.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Undo ENTER

Post by PB »

For me I just hit Ctrl+Z once to restore the line. Not per character.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: Undo ENTER

Post by coco2 »

It will also remove any auto-indentation on the first CTRL+Z. Per character? Surely this is not desirable?
Post Reply