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

New lines sometimes get deleted when moving the cursor immediately afterwards #63

Closed
nikkiwd opened this issue Oct 30, 2023 · 1 comment · Fixed by #77
Closed

New lines sometimes get deleted when moving the cursor immediately afterwards #63

nikkiwd opened this issue Oct 30, 2023 · 1 comment · Fixed by #77

Comments

@nikkiwd
Copy link

nikkiwd commented Oct 30, 2023

After pressing enter to add a new line, they often get removed again if I try to leave the line blank and move to a different line.

An example:

What happens: The blank line that was just added is removed again

What I'd expect to happen: Blank lines don't get removed unless I delete them

@hannahbast
Copy link
Member

@nikkiwd OK, I can reproduce this. The thing is that you can move around in a query with TAB, which takes you to the end of the SELECT clause, the end of the query body, and the end of the query. When TAB takes you to the end of the query body, it inserts an empty line, in case you want to add something. If you don't type anything but just press TAB again, the empty line gets deleted again. So it's a feature, not a bug :-)

What is the use case for adding empty lines to the query, then going somewhere else, and then wanting the empty lines to still be there?

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

Successfully merging a pull request may close this issue.

2 participants