From d91ebdd797d87445b3456de6f81f16558cfc29e8 Mon Sep 17 00:00:00 2001 From: Jacob Niehus Date: Mon, 7 Sep 2015 17:55:02 -0700 Subject: [PATCH] Fix calling setline on wrong line in reindent --- plugin/exchange.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/exchange.vim b/plugin/exchange.vim index e3491f5..5d3483c 100644 --- a/plugin/exchange.vim +++ b/plugin/exchange.vim @@ -75,7 +75,7 @@ function! s:reindent(start, lines, new_indent) let line = getline(lnum) execute "silent normal! " . lnum . "G==" let new_indent = matchstr(getline(lnum), '^\s*') - call setline(a:start, line) + call setline(lnum, line) else let new_indent = a:new_indent endif