summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2003-05-28 16:09:12 +0000
committerMatthias Melcher <fltk@matthiasm.com>2003-05-28 16:09:12 +0000
commit5ccb6afda8e50a7ac17c318defe57eaeb136c97d (patch)
treefc6b6c584ff6736beca5c2357679bb81532838e6 /src
parentf2f1e0b232c78dfa67818aff11ae5291b7b9197f (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Text_Buffer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Text_Buffer.cxx b/src/Fl_Text_Buffer.cxx
index 440703e26..3f97e6c98 100644
--- a/src/Fl_Text_Buffer.cxx
+++ b/src/Fl_Text_Buffer.cxx
@@ -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.
// 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 pos, gapLen = mGapEnd - mGapStart;
- if ( startPos <= 0 || startPos >= mLength ) {
+ if ( startPos <= 0 || startPos > mLength ) {
*foundPos = 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 $".
//