Skip to content

Commit

Permalink
Fix bug of TextInput.adjust_vertical(1) always moving to the end of t…
Browse files Browse the repository at this point in the history
…ext.
  • Loading branch information
ema-fox committed Dec 6, 2014
1 parent 2d0e96e commit 2ec16a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/textinput.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 2ec16a0

Please sign in to comment.