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

[v3] undo differs from [v2] #970

Closed
peterkroon opened this issue Nov 13, 2012 · 5 comments
Closed

[v3] undo differs from [v2] #970

peterkroon opened this issue Nov 13, 2012 · 5 comments

Comments

@peterkroon
Copy link
Contributor

OS: W732

[v2] - bug 1

  • Place cursor on line 11 via mouse at the end
  • Hold down the tab key to insert ~15 tabs
  • Ctrl-Z will undo all added tabs except for 1 which will remain, I consider this to be a bug

[v2]- bug 2

  • Place cursor on line 11 via mouse at the end
  • Hold down the tab Ctrl-] to insert ~15 tabs
  • The tabs are added before the closing bracket }
  • Ctrl-Z will undo all added tabs except for 1 which will remain, I consider this to be a bug

[v3] - bug 1

  • Place cursor on line 11 via mouse at the end
  • Hold down the tab key to insert ~15 tabs
  • Ctrl-Z will undo one tab per Ctrl-Z, It's behaviour differs from [v2]

[v3]- bug 2

  • same as [v2] - bug 2
marijnh added a commit that referenced this issue Nov 13, 2012
…changes as input

This helps the undo history notice that it may combine them.

Issue #970
@marijnh
Copy link
Member

marijnh commented Nov 13, 2012

Undo differing in v3 is by design -- I overhauled it to be more predictable and correct. The bugs you found were not by design. The above patch should fix them (do double-check, if you have a moment).

The behavior in v2 is indeed messy, but I'm not going to fix it anymore.

@marijnh
Copy link
Member

marijnh commented Nov 13, 2012

(Thanks for finding all these bugs, by the way!)

@peterkroon
Copy link
Contributor Author

The above patch should fix them (do double-check, if you have a moment).

It appears to be fixed, however:

(Thanks for finding all these bugs, by the way!)

Well.....It's about that time....

@marijnh
Copy link
Member

marijnh commented Nov 13, 2012

Ctrl-] a new tab is inserted but it's inserted before the closing bracket and not after it
Feels like a bug to me

Ctrl-] is bound to indentMore. Indentation happens at the start of the line. If you want to insert a tab, use the tab key.

@marijnh marijnh closed this as completed Nov 13, 2012
@peterkroon
Copy link
Contributor Author

Ctrl-] is bound to indentMore. Indentation happens at the start of the line. If you want to insert a tab, use the tab key.

OK

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