From f348e2bdb9293237513ef0853a11c63aecbe9f04 Mon Sep 17 00:00:00 2001 From: Andrew Fuller Date: Fri, 27 Sep 2024 19:11:41 -0700 Subject: Fix bug in Fl_Text_Display when tab is followed by multibyte char When the user clicks the right half of a tab, we add 1 (the byte len of the tab) to obtain the starting index of the following character. --- src/Fl_Text_Display.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_Text_Display.cxx') diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index f20a35d0b..47fa17560 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -2139,7 +2139,7 @@ int Fl_Text_Display::handle_vline( // find x pos inside block free(lineStr); if (cursor_pos && (startX+w/2