From b4995f979d127cea667b4e2b71c91e9db4ab52ef Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Fri, 6 Feb 2026 18:12:40 +0500 Subject: wip --- src/Fl_Input_.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/Fl_Input_.cxx') diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index c052de10d..e06942539 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -109,7 +109,8 @@ public: void clear() { if (list_) { - for (int i=0; i 0 && index(j-1) != '\n') j--; // now measure lines until we get past i, end of that line is real eol: setfont(); - for (const char* p=value()+j; ;) { + const char *p; + for (p =value()+j; ;) { char buf[MAXBUF]; p = expand(p, buf); int k = (int) (p-value()); @@ -610,7 +612,8 @@ int Fl_Input_::line_start(int i) const { if (wrap()) { // now measure lines until we get past i, start of that line is real eol: setfont(); - for (const char* p=value()+j; ;) { + const char *p; + for (p =value()+j; ;) { char buf[MAXBUF]; const char* e = expand(p, buf); if ((int) (e-value()) >= i) return (int) (p-value()); -- cgit v1.2.3