Highlighting Not Working Correctly

Solved bugs are moved into this topic...
Post Reply
hamasaki
Posts: 54
Joined: 16.07.2014 19:10

Highlighting Not Working Correctly

Post by hamasaki »

Hi Alexey,

Since the latest update the highlighting is screwed up. If I click and drag over a word, the highlighted part doesn't match where the caret is. I can't click and drag to highlight. Likewise if I double click a word to highlight it, the caret is in the wrong place. Is this a setting in the new release?

Thank you.
Attachments
screen.gif
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

cannot see it yet.
- pls, post the example file
- is it wrapped? at what column it's wrapped?
- post user.json in code-block
hamasaki
Posts: 54
Joined: 16.07.2014 19:10

Post by hamasaki »

I can't post the file as it is a SQL file with sensitive data.

No, it is not wrapped.

user.json as follows:

Code: Select all

{
  "font_name" : "Courier New",
  "font_size" : 12,
  "ui_toolbar_show" : true,
  "ui_font_name" : "Segoe UI",
  "ui_font_size" : 10,
  "ui_sidebar_show" : false,
  "gutter_fold" : false,
  "gutter_fold_always" : false,
  "gutter_show" : true,
  "ui_toolbar_theme" : "fugue_24x24",
  "ui_sidebar_theme" : "axialis-flat-pro-2017-white_16x16",
  "links_hilite" : false,
  "autocomplete_add_opening_bracket" : false,
  "autocomplete_html" : false,
  "autocomplete_css" : false,
  "staples_style" : 0,
  "underline_color_files" : " ",
  "ui_sidebar_on_right" : true,
  "ui_title_path" : true,
  "auto_close_brackets" : "",
  "ui_reopen_session" : false,
  "ui_auto_save_session" : true,
  "find_separate_form" : true,
  "find_suggest_in_selection" : true,
  "ui_max_history_menu" : 25,
  "ui_one_instance" : true,
  "find_suggest_sel" : true,
  "show_mouse_sel_frame" : false,
  "tab_size" : 2,
  "def_encoding_utf8" : true,
  "config_menus_from" : "menu.json",
  "nonword_chars" : "-+*=/\\()[]{}<>\"'.,:;~?!@#%^&|`…",
  "find_suggest_cur_word" : false,
  "ui_listbox_size_x" : 700,
    "key_left_right_wrap_with_carets": false,
}
hamasaki
Posts: 54
Joined: 16.07.2014 19:10

Post by hamasaki »

If it happens again in a less sensitive file I'll let you know and send you the file.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

maybe you can take 2-3 lines (which show the bug) and replace in them RegEx \w to X.
hamasaki
Posts: 54
Joined: 16.07.2014 19:10

Post by hamasaki »

Hi Alexey,

I have removed most of the SQL code and just left in some payment gateway info. This has no sensitive data and is fine. So, rename with the .txt file with an .sql extension.

Open it and search for maybe 'Et dui magna adipiscing tristique'. Make sure wrapping is off so you have the horizontal scrollbar. Then click and highlight or Click Shift and the arrow keys to highlight, it has the same kind of weird affect.
gif.gif
I think it might be something to do with the SQL lexer? Because if you check it as a txt file it seems to be ok.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

thanks, I see bug, with and w/o lexer.
syntetic test
Attachments
bad-sel.txt
(559 Bytes) Downloaded 100 times
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

fixed in github. thanks
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Win32/64 release- 1.97.6.
hamasaki
Posts: 54
Joined: 16.07.2014 19:10

Post by hamasaki »

Glad you found it. Thanks for the fix Alexey, everything is working fine now. :)
Post Reply