summaryrefslogtreecommitdiff
path: root/src/Fl_Input_.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-03-02 07:03:15 +0000
committerBill Spitzak <spitzak@gmail.com>1999-03-02 07:03:15 +0000
commit4df7511b18e6f90c3a167801b78755081cbaaef8 (patch)
tree26e8abf8f5bec29d7702726de4db2b660f9bd4f8 /src/Fl_Input_.cxx
parent32291ad0d5d9312534fa3c061c13535a38fa5a2c (diff)
Didn't like yesterday's fix, I changed it so that zero-length selections
are allowed. Warning: untested on WIN32 (although it seems likely that it will work). git-svn-id: file:///fltk/svn/fltk/trunk@349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Input_.cxx')
-rw-r--r--src/Fl_Input_.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx
index 68a6b4466..4b6da8259 100644
--- a/src/Fl_Input_.cxx
+++ b/src/Fl_Input_.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Input_.cxx,v 1.19 1999/03/01 03:44:30 bill Exp $"
+// "$Id: Fl_Input_.cxx,v 1.20 1999/03/02 07:03:14 bill Exp $"
//
// Common input widget routines for the Fast Light Tool Kit (FLTK).
//
@@ -436,10 +436,7 @@ int Fl_Input_::copy() {
} else {
e = position(); b = mark();
}
- if (type()!=FL_SECRET_INPUT)
- Fl::selection(*this, value()+b, e-b);
- else
- Fl::selection(*this, "*", 1);
+ Fl::selection(*this, value()+b, (type()!=FL_SECRET_INPUT) ? e-b : 0);
return 1;
}
return 0;
@@ -736,5 +733,5 @@ Fl_Input_::~Fl_Input_() {
}
//
-// End of "$Id: Fl_Input_.cxx,v 1.19 1999/03/01 03:44:30 bill Exp $".
+// End of "$Id: Fl_Input_.cxx,v 1.20 1999/03/02 07:03:14 bill Exp $".
//