Commit 213f051e authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub

Merge pull request #79 from dummie999/master

Fix bug that could cause panic when deleting lines
parents 56be5069 45ee23fb
......@@ -149,7 +149,7 @@ impl<'a> TextBuffer<'a> for SplitBuffer {
if n < self.before.len() {
self.before.remove(n)
} else if n < self.len() {
let n = self.len() - 1 - n;
let n = n - self.before.len();
let ret = self.after.remove(n);
if n == 0 {
self.up();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment