From e0103d2dd7069a95b4d387f5eaf1114aaa955f1f Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 19 Sep 2009 20:52:36 +0000 Subject: Bug in tab calculation in Fl_Input_ (Thanks to Timothy Lee) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6886 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Input_.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index 98440e13f..cd4de2b8c 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -134,7 +134,7 @@ double Fl_Input_::expandpos( if (c < ' ' || c == 127) { if (c == '\t' && input_type()==FL_MULTILINE_INPUT) { n += 8-(chr%8); - chr += 8-(chr%8); + chr += 7-(chr%8); } else n += 2; } else { n++; -- cgit v1.2.3