Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.54k stars 173 forks source link

Strange things happen (UI flashes and freezes) using scrollbar + search with this ini #5679

Closed Hexaae closed 2 months ago

Hexaae commented 2 months ago

Try to load this text in CudaText 1.217.0.0: https://paste.sh/16qPiktI#zVIiBQ8Szu7cOYcsoc0Ut3S- Enter something in the Search string, and move up/down with scrollbar on the right. UI will flash and freeze.

Here is my user cfg:

  "ui_toolbar_show" : true,
  "ui_theme" : "syn",
  "ui_theme_syntax" : "syn",
  "ui_toolbar_theme" : "default_16x16",
  "find_hi_max_lines" : 10000000,
  "micromap_show" : true,
  "minimap_show" : true,
  "ui_statusbar_no_sel" : "{_ln} {y}/{count}, {_col} {xx}",
  "ui_statusbar_small_sel" : "{_ln} {y}/{count}, {_col} {xx}, {_sel} {selchars}",
  "ui_statusbar_str_sel" : "{_ln} {y}/{count}, {_col} {xx}, {selchars}:{sel} {_linesel}",
  "ui_statusbar_panels" : "caret,C,220|enc,C,120|ends,A,45|lexer,C,140|tabsize,A,75|selmode,A,15|msg,L,4000",
  "ui_max_history_menu" : 25,
  "ui_auto_save_session" : false,
  "ui_one_instance" : true,
  "ruler_show" : true,
  "wrap_enabled_max_lines" : 360000,
  "unprinted_show" : false,
  "unprinted_content" : "sedp",
  "font_name" : "Consolas",
  "font_size" : 10,
  "margin_right" : 90,
  "margin_left_1" : 0,
  "margin_left" : 0,
  "max_line_len_for_undo": 902400,
  "undo_limit": 9000,
  "find_hi_max_line_len": 10000000,
  "find_suggest_sel": true,
  "find_wrapped_blinking": "EdMarkedRangeBg",
}

The bug is related to the search feature. If I clear search field it won't happen.

Alexey-T commented 2 months ago
  1. your version string form About dlg?
  2. nothing happens here on Linux gtk2. but Find-dlg params matter. what are your Find-dlg options? ( i tried [O][Hi][Im] and find-text "Of" ).
Alexey-T commented 2 months ago
  1. pls try it on clean Cud, with only changed user.json. maybe additional plugin freezes?
Alexey-T commented 2 months ago
  1. what if you activate NONE lexer? default lexer is "Ini files ^", right?
Alexey-T commented 2 months ago

I see it now - with Highlight Occurrences plugin. editor flickers because the finder finds something on scrolling. (but UI don't freeze, only flickers).

Alexey-T commented 2 months ago

you use Win64 version, here is beta with fix cudatext-w.zip

Hexaae commented 2 months ago

Working fine! Can't reproduce the freeze/hi-light flickering UI issue anymore with the beta.