Browse files

one more fix of cancel selection

  • Loading branch information...
1 parent 509db4d commit 4af26ff3785128153b33855edbb59ff361477f5f @NotFound committed Dec 14, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 examples/pokedit.winxed
View
6 examples/pokedit.winxed
@@ -571,8 +571,7 @@ class TextWindow : ChildWindow
l = length(line);
switch (key) {
case "\r":
- if (self.someselected())
- self.cancelselected();
+ self.cancelselected();
if (curpos > l)
curpos = l;
string newline = substr(line, curpos);
@@ -602,8 +601,7 @@ class TextWindow : ChildWindow
curpos = l;
key = " " * (8 - (curpos % 8));
default:
- if (self.someselected())
- self.cancelselected();
+ self.cancelselected();
if (ord(key) < ord(" "))
break;
if (self.someselected())

0 comments on commit 4af26ff

Please sign in to comment.