Could not delete a selection using backspace if that selection started

at the first character.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7644 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-05-25 19:58:30 +00:00
parent 28ea1ff2ad
commit cc83827621
+3 -2
View File
@@ -184,9 +184,10 @@ FindTextView::KeyDown(const char *bytes, int32 numBytes)
GetSelection(&start, &end);
if (bytes[0] == B_BACKSPACE) {
start--;
if (start < 0)
if (--start < 0 && end == 0)
return;
start = 0;
}
if (Text()[start] == ' ')