mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
STR #39: FL_text_Buffer search backward would not allow searching from 1
after the last character. this is fixed. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
CHANGES IN FLTK 1.1.4
|
CHANGES IN FLTK 1.1.4
|
||||||
|
|
||||||
|
- Pressing 'home' after the last letter in a Text_Editor
|
||||||
|
would move the cursor to pos 0 (STR #39)
|
||||||
- Fl::get_key(x) would mix up Ctrl and Meta on OS X (STR
|
- Fl::get_key(x) would mix up Ctrl and Meta on OS X (STR
|
||||||
#55)
|
#55)
|
||||||
- The configure script used the wrong dynamic library
|
- The configure script used the wrong dynamic library
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Text_Buffer.cxx,v 1.9.2.18 2003/01/30 21:42:46 easysw Exp $"
|
// "$Id: Fl_Text_Buffer.cxx,v 1.9.2.19 2003/05/28 16:09:12 matthiaswm Exp $"
|
||||||
//
|
//
|
||||||
// Copyright 2001-2003 by Bill Spitzak and others.
|
// Copyright 2001-2003 by Bill Spitzak and others.
|
||||||
// Original code Copyright Mark Edel. Permission to distribute under
|
// Original code Copyright Mark Edel. Permission to distribute under
|
||||||
@@ -2224,7 +2224,7 @@ int Fl_Text_Buffer::findchar_backward( int startPos, char searchChar,
|
|||||||
int *foundPos ) {
|
int *foundPos ) {
|
||||||
int pos, gapLen = mGapEnd - mGapStart;
|
int pos, gapLen = mGapEnd - mGapStart;
|
||||||
|
|
||||||
if ( startPos <= 0 || startPos >= mLength ) {
|
if ( startPos <= 0 || startPos > mLength ) {
|
||||||
*foundPos = 0;
|
*foundPos = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -2510,5 +2510,5 @@ Fl_Text_Buffer::outputfile(const char *file, int start, int end, int buflen) {
|
|||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Text_Buffer.cxx,v 1.9.2.18 2003/01/30 21:42:46 easysw Exp $".
|
// End of "$Id: Fl_Text_Buffer.cxx,v 1.9.2.19 2003/05/28 16:09:12 matthiaswm Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user