Skip to content
Browse files

Oops. Cancel selection in wrong place, fixed

  • Loading branch information...
1 parent 0e3c2b0 commit a0d56021269cef3ee28e0c15a5f78b9454e412ea @NotFound committed Dec 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 examples/pokedit.winxed
View
3 examples/pokedit.winxed
@@ -567,7 +567,6 @@ class TextWindow : ChildWindow
key = self.LookupString(event);
if (key == null || length(key) == 0)
break;
- self.cancelselected();
string line = text[curline];
l = length(line);
switch (key) {
@@ -603,6 +602,8 @@ class TextWindow : ChildWindow
curpos = l;
key = " " * (8 - (curpos % 8));
default:
+ if (self.someselected())
+ self.cancelselected();
if (ord(key) < ord(" "))
break;
if (self.someselected())

0 comments on commit a0d5602

Please sign in to comment.
Something went wrong with that request. Please try again.