mirror of https://github.com/fltk/fltk
Fl_Text_Display would hang if the user pressed Ctrl-left with the cursor
in the first columna and line (pos 0) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3921 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
f26b5336a0
commit
7aca156564
2
CHANGES
2
CHANGES
|
@ -1,5 +1,7 @@
|
|||
CHANGES IN FLTK 1.1.6
|
||||
|
||||
- Fl_Text_Display::word_left would hang if cursor was
|
||||
at pos 0
|
||||
- Documentation updates (STR #552, STR #608)
|
||||
- Added the 2.0 Fl_Widget::copy_label() method to
|
||||
allow FLTK 1.x applications to have their label
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// "$Id: Fl_Text_Display.cxx,v 1.12.2.58 2004/11/20 03:44:17 easysw Exp $"
|
||||
// "$Id: Fl_Text_Display.cxx,v 1.12.2.59 2004/11/23 23:10:26 matthiaswm Exp $"
|
||||
//
|
||||
// Copyright 2001-2004 by Bill Spitzak and others.
|
||||
// Original code Copyright Mark Edel. Permission to distribute under
|
||||
|
@ -1154,6 +1154,7 @@ void Fl_Text_Display::next_word() {
|
|||
|
||||
void Fl_Text_Display::previous_word() {
|
||||
int pos = insert_position();
|
||||
if (pos==0) return;
|
||||
pos--;
|
||||
while (pos && fl_isseparator(buffer()->character(pos))) {
|
||||
pos--;
|
||||
|
@ -3148,5 +3149,5 @@ int Fl_Text_Display::handle(int event) {
|
|||
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.58 2004/11/20 03:44:17 easysw Exp $".
|
||||
// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.59 2004/11/23 23:10:26 matthiaswm Exp $".
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue