Bug #26806 Statement highlighting leaving line shown as "active"
Submitted: 2 Mar 2007 19:56 Modified: 12 Mar 2007 10:29
Reporter: Anthony Willard (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S3 (Non-critical)
Version:1.2.10 OS:Windows (WinXP, SP2)
Assigned to: Mike Lischke CPU Architecture:Any
Tags: qc

[2 Mar 2007 19:56] Anthony Willard
Description:
The highlighting on the active statement seems to remain on the last line of a multi-line statement when new blank lines are inserted before statement.

How to repeat:
1) Open Query Browser
2) Enter a multiple line query, like:
SELECT table_name
FROM information_schema.tables;
3) Press enter
-- the statement, including the current, blank line, are shaded background
4) Move cursor to the start of the first line
-- statement is not shaded, but white
5) Press enter, inserting a blank line at the top of the display.
6) Move to the top, newly entered blank line
-- the last line (FROM information_schema.tables;) remains unshaded, where the first line is shaded background.  This behavior persists following the statement, when you add additional statements.  Subsequent statements appear to follow the same pattern as well.

Suggested fix:
Review the highlighting logic.
[4 Mar 2007 14:21] Valeriy Kravchuk
Thank you for a problem report. Verified just as described.
[12 Mar 2007 10:29] Mike Lischke
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html