@@ -1,3 +1,8 @@
+2006-11-13 Jackson Harper <[email protected]>
+
+ * TextBoxBase.cs: Don't select the word if we are on a line with
+ no text.
2006-11-13 Gert Driesen <[email protected]>
* TreeNodeCollection.cs: Avoid duplicating indexer code.
@@ -1582,6 +1582,9 @@ namespace System.Windows.Forms {
int start = document.caret.pos;
int end = document.caret.pos;
+ if (s.Length < 1)
+ return;
if (start > 0) {
start--;
end--;