[super minor bug] triple click select the last line of a file, hit tab key on keyboard

zitot

Member²
I almost didn't report it but i figure there's that 0.001% chance this could be important or cause someone to rage someday.

Description of bug:
You have some SQL code in a file, and you realize the last line of your code is not indented. Coincidentally, the last line of your code is also the last line of the file.

SQL:
select c.subject,c.crse_numb from courses c
  join enrollment e
    on e.term_code = c.term_code
   and e.subject = c.subject
and e.crse_numb = c.crse_numb;
^ no more lines!

You triple click the line to select it (This may be Windows PC specific behavior only, i don't know if mac users would do this), hit the tab key on your keyboard;

What should happen:
line should indent but preserve your text after the whitespace

What actually happened:
the whole line disappeared but it did make that whitespace.

It's minor because it (AFAIK) only ever occurs in that scenario.

Version: 16.0.7.2712
 
I see that this happens if all text of one line is being selected (all characters marked), instead of the complete line being selected (whole line across the editor width marked). This can be the last line, but also other lines.

We'll fix it so that tab will indent such a line as well.
 
Back
Top