Page 1 of 1

Highlighting Not Working Correctly

Posted: 02.04.2020 06:25
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.

Posted: 02.04.2020 14:03
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

Posted: 02.04.2020 17:31
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,
}

Posted: 02.04.2020 17:35
by hamasaki
If it happens again in a less sensitive file I'll let you know and send you the file.

Posted: 02.04.2020 18:27
by Alexey
maybe you can take 2-3 lines (which show the bug) and replace in them RegEx \w to X.

Posted: 03.04.2020 02:27
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.

Posted: 03.04.2020 05:00
by Alexey
thanks, I see bug, with and w/o lexer.
syntetic test

Posted: 03.04.2020 05:58
by Alexey
fixed in github. thanks

Posted: 03.04.2020 16:34
by Alexey
Win32/64 release- 1.97.6.

Posted: 04.04.2020 04:57
by hamasaki
Glad you found it. Thanks for the fix Alexey, everything is working fine now. :)