From 013cc0fab88bb907c9a2139be0dfa31f7275ec86 Mon Sep 17 00:00:00 2001 From: cathook Date: Sat, 6 Dec 2014 17:38:20 +0800 Subject: fix little bug --- vim/plugin/shrvim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/plugin/shrvim.vim b/vim/plugin/shrvim.vim index 070a35f..8bcccb9 100644 --- a/vim/plugin/shrvim.vim +++ b/vim/plugin/shrvim.vim @@ -453,7 +453,7 @@ class VimLinesInfo(object): if orig_rows < new_rows: return [(orig_rows, orig_rows, self._lines[orig_rows : ])] elif orig_rows > new_rows: - return [(first + 1, orig_rows, [])] + return [(new_rows, orig_rows, [])] else: return [] delta = new_rows - orig_rows -- cgit v1.2.3