Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoking "Undo" does not restore previous selection #1281

Closed
yunkot opened this issue May 16, 2016 · 4 comments
Closed

Invoking "Undo" does not restore previous selection #1281

yunkot opened this issue May 16, 2016 · 4 comments

Comments

@yunkot
Copy link

yunkot commented May 16, 2016

CodeLite 9.1.7, revision 820962c.

  1. In CodeLite, select some portion of code.
  2. Press "x". Notice that the selected portion was replaced by "x".
  3. Edit - Undo (or press "Ctrl + Z").
  4. Expected: previous selection is preserved. Actual: previous selection is permanently lost.

In above example, when we pressed "x", we could have actually meant "Ctrl + X", but failed to press "Ctrl" properly, and even though we did "Undo", our selection wasn't restored, so we have select required portion all over again, spending additional time and effort.

The expected behavior can be seen, for instance, in "gedit" (Linux), Notepad or Visual Studio (Windows) - repeat above steps 1-5 to see that previous selection is restored after Undo.

@eranif
Copy link
Owner

eranif commented May 16, 2016

Hi,
I tested this today on OSX, Linux and Windows.
It works well on cases :/
Can you please provide some more details on your machine specifics etc?

Thanks

@yunkot
Copy link
Author

yunkot commented May 16, 2016

Sorry, forgot to mention. I'm experiencing this on Ubuntu 16.04 64-bit w/Unity. I just checked, exactly same issue occurs in CodeLite 9.1.5 on Windows 7 x64-bit running inside VirtualBox: either "Ctrl + Z" or "Edit - Undo" restores previous text content, but not the selection.

@yunkot
Copy link
Author

yunkot commented May 16, 2016

By selection, I mean the whole selection, not just cursor position, like this:
codelite lost selection

@eranif
Copy link
Owner

eranif commented May 21, 2016

OK, so you expect the selection to be restored?
This is not supported by the editor component Scintilla... so I guess its not supported in CodeLite

I don't think that the scintilla developers are planning on adding this any time soon

@eranif eranif closed this as completed May 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants