Skip to content
Permalink
Browse files

Fix bug of TextInput.adjust_vertical(1) always moving to the end of t…

…ext.
  • Loading branch information...
ema-fox committed Dec 6, 2014
1 parent 2d0e96e commit 2ec16a0e88d94aa83a222a3e207cfbe619824815
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/script/textinput.rs
@@ -163,7 +163,7 @@ impl TextInput {
self.edit_point.index = 0;
self.edit_point.line = 0;
return;
} else if adjust > 0 && self.edit_point.line >= min(0, self.lines.len() - adjust as uint) {
} else if adjust > 0 && self.edit_point.line >= self.lines.len() - adjust as uint {
self.edit_point.index = self.current_line_length();
self.edit_point.line = self.lines.len() - 1;
return;

0 comments on commit 2ec16a0

Please sign in to comment.
You can’t perform that action at this time.