View scrolling seems to work properly now.

This commit is contained in:
Nathan Vegdahl 2015-02-07 23:14:56 -08:00
parent 8f94b32953
commit 8d76e3fb17

View File

@ -311,7 +311,7 @@ impl<T: LineFormatter> Editor<T> {
if self.cursors[0].range.0 < g_first {
self.view_pos.0 = self.cursors[0].range.0;
}
else if self.cursors[0].range.0 > g_last {
else if self.cursors[0].range.0 >= g_last {
self.view_pos.0 = self.formatter.index_offset_vertical_v2d(&self.buffer, self.cursors[0].range.0, -((self.view_dim.0 - 1) as isize), (Floor, Floor));
}
}