little-brother / sqlite-gui

Lightweight SQLite editor for Windows
GNU General Public License v2.0
1.09k stars 52 forks source link

Syntax highlighting changes with replace all #112

Closed jungle-boogie closed 2 years ago

jungle-boogie commented 2 years ago

Hi,

  1. Take this query:

    select b.author, b.title, printf("%.2f", avg(r.rating)) rating, count(1) review_count
    from reviews r inner join books b on r.book_id == b.id
    group by r.book_id, b.author
    order by 4 desc, 3 desc
    limit 5;
  2. Make sure you're on line 1

  3. Press ctrl+f

  4. Find b.author replace all with c.author

  5. Notice the formatting is now all blue:

image

If you go to the end of the query and do find/replace all, the text color doesn't change.

little-brother commented 2 years ago

Fixed.