Bug #14081 Left arrow in query editor incorrectly uses current line length
Submitted: 17 Oct 2005 17:41 Modified: 4 Jan 2006 15:05
Reporter: [ name withheld ] Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Query Browser Severity:S3 (Non-critical)
Version:1.1.15 OS:Windows (Windows XP)
Assigned to: Mike Lischke CPU Architecture:Any

[17 Oct 2005 17:41] [ name withheld ]
Description:
When in the query editor, if I have the cursor at the beginning of a line and I use the left arrow, I'd expect the cursor to go to the end of the previous line. Instead it goes to the character that is at the same distance from the start of the line as the previous line.

How to repeat:
(1) Type this query into the editor and leave the cursor where the [] is.

SELECT * from foo1, foo2, foo3, foo4
[]where foo1.bar is null

(2) Hit the left arrow

The intuitive placement of the cursor would be  

SELECT * from foo1, foo2, foo3, foo4[]
where foo1.bar is null

instead the cursor placement is 

SELECT * from foo1, fo[]o2, foo3, foo4
where foo1.bar is null

Suggested fix:
Probably just an off by one error. Seems like the current line length is being calculated rather than the length of the previous line.
[4 Jan 2006 15:05] Mike Lischke
I cannot reproduce this problem with the actual sources. Since a lot of work went into the SQL control since October I assume this particular problem also has been fixed in this process. Please verify that with the current or next release of QB and reopen this bug report if you still see the mentioned problem.

Mike