Author: greg.ercolano
Date: 2009-09-20 14:55:21 -0700 (Sun, 20 Sep 2009)
New Revision: 6894
Log:
Fixed problem caught by matt in STR#2169:

COMMAND-LEFT and COMMAND-RIGHT didn't scroll if line
wider than screen.. 



Modified:
   branches/branch-1.3/src/Fl_Text_Editor.cxx

Modified: branches/branch-1.3/src/Fl_Text_Editor.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Text_Editor.cxx  2009-09-20 19:24:24 UTC (rev 
6893)
+++ branches/branch-1.3/src/Fl_Text_Editor.cxx  2009-09-20 21:55:21 UTC (rev 
6894)
@@ -378,10 +378,10 @@
       e->scroll(e->count_lines(0, e->buffer()->length(), 1), 0);
       break;
     case FL_Left:                      // beginning of line
-      e->insert_position(e->buffer()->line_start(e->insert_position()));
+      kf_move(FL_Home, e);
       break;
     case FL_Right:                     // end of line
-      e->insert_position(e->buffer()->line_end(e->insert_position()));
+      kf_move(FL_End, e);
       break;
   }
   return 1;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to