From bd4ad3e4a0c8e3153d9d3b532d9c572f5aaad897 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 24 Jan 2026 16:15:47 +0100 Subject: Let Fl_Text_Editor and Fl_Input handle gracefully composed unicode characters. --- src/Fl_Text_Display.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Fl_Text_Display.cxx') diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 7f14623d6..9e0aacc2f 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -1,5 +1,5 @@ // -// Copyright 2001-2022 by Bill Spitzak and others. +// Copyright 2001-2026 by Bill Spitzak and others. // Original code Copyright Mark Edel. Permission to distribute under // the LGPL for the FLTK library granted by Mark Edel. // @@ -2263,7 +2263,8 @@ int Fl_Text_Display::find_x(const char *s, int len, int style, int x) const { int i = 0; int last_w = 0; // STR #2788 while (ix) { if (cursor_pos && (w-x < x-last_w)) return i+cl; // STR #2788 -- cgit v1.2.3