-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Fix #3130: Move line up/down has incorrect behavior in edge cases in inline editor #3038
Comments
We should definitely add unit tests for these cases too. See usage of makeEditorWithRange() in EditorCommandHandlers-test for examples of testing edit commands within inline editors. |
Sure, I will add some tests here. |
Thanks! |
I started working on the tests, but I also tried to see if it worked without any special cases, and it does, so even fixing that, these wouldn't make good test cases. Is there another way of really testing an inline editor without creating a window? |
I ended creating a window with an inline editor to do the tests, and used the same window for all the tests, so it doesn't make the tests that much slower. If there is a better alternative, I'll change the tests. |
Assigned to me. Tagging bug #3130. |
Initial review complete |
|
|
|
Looks good. Merging. |
Sunday Mar 24, 2013 at 07:46 GMT
Originally opened as adobe/brackets#3233
Added 2 special cases making it possible to move the second to last line to the last position and to move the last line up without shrinking the editor.
Currently it would be possible to move the last line to end of file or the line before the end of file, but isn't possible to move before the first line since the TexRange doesn't update to reduce the first line of the inline editor. Anyway, this makes it work better than before and maybe with a new implementation of inline editors, we could remove all the restriction and special cases on inline editors.
TomMalbran included the following code: https://github.com/adobe/brackets/pull/3233/commits
The text was updated successfully, but these errors were encountered: