istoph / editor

The chr terminal editor is inspired by the turbo pascal editor using Turbo Vision from the year 1997. For the keyboard shortcut he should be similar gedit, to facilitate the transition from desktop to console editor.
Boost Software License 1.0
35 stars 3 forks source link

Qt warning after exiting editor #13

Closed bziemons closed 1 year ago

bziemons commented 1 year ago

When using the following config, I am getting multiple generic Qt warnings after exiting the editor.

log message(s):

Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.

chr configuration:

color_space_end=true
color_tabs=true
highlight_bracket=true
right_margin_hint=80
tab=false
tabsize=8
theme=dark
wrap_lines=true
textshell commented 1 year ago

Thanks for reporting this reproducer. With highlight_bracket=true empty lines trigger that message while processing bracket highlight. I've fixed this cause of the error message in c1267820. I'll close this issue for now. But if you find another reproducible way to trigger these kind of error messages, please feel free to open another report.