diff options
author | cathook <b01902109@csie.ntu.edu.tw> | 2014-12-06 17:38:20 +0800 |
---|---|---|
committer | cathook <b01902109@csie.ntu.edu.tw> | 2014-12-06 17:38:20 +0800 |
commit | 013cc0fab88bb907c9a2139be0dfa31f7275ec86 (patch) | |
tree | 0c0a8a93c519cfe0f8ac2ceefe0bf3f3010b138a | |
parent | 7dd7e95dc20405327dd2da3e3cde6ba732e703a9 (diff) | |
download | vim-shrvim-013cc0fab88bb907c9a2139be0dfa31f7275ec86.tar.gz vim-shrvim-013cc0fab88bb907c9a2139be0dfa31f7275ec86.tar.zst vim-shrvim-013cc0fab88bb907c9a2139be0dfa31f7275ec86.zip |
fix little bug
-rw-r--r-- | vim/plugin/shrvim.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |