Using Ctrl-Z to undo code completion gives too many keystrokes

Claus Pedersen

Member³
I type

"user_so" in an editor and selects the top view in the code completion list.

I then press . and get the list of column names for view user_source.

I press the down arrow key 3 times to get to "line" and press Enter

I now press Ctrl-Z several times to undo my changes.

First I get back to "user_source.", which is OK

Then I get back to "user_source", which is OK.

Then PLD shows "user_source." again. Why?

Then "user_source".

Then PLD puts the cursor on the line below the one I was editing. Why?

Then "user_so" and eventually back to a blank line

So Ctrl-Z works, but with many extra keystrokes compared to PLD version 12.

Why are the extra keystrokes 'recorded' and rewinded when using Ctrl-Z (including the Enter when selecting the view name from the code completion list)?
 
Another example of too many keystrokes generated by PLD. I have two lines in an editor
Code:
aaa
bbb

I mark the two lines by pressing Shift and two times Down-Arrow. I press Tab 3 times to indent the lines to the right.

I press Ctrl-Z 9 (!) times and the following events happen:
1: cursor is positioned below the two lines in position 3
2: cursor is positioned below the two lines in position 1
3: the two lines are unindented two spaces to the left
4: (same as 1)
5: (same as 2)
6: (same as 3)
7: (same as 1)
8: (same as 2)
9: (same as 3)

Only now, I have reverted my 3 Tabs.

Why does it take PLD 9 pushes on Ctrl-Z to undo 3 keystrokes? I would have expected only steps 3, 6 and 9 to be performed.

Please fix this. Even if pressing a key produces several steps internally in the editor, Ctrl-Z should not reflect these internal steps.
 
Back
Top