From 694d00abe950c4474c6aade26b9158ca7f7e9705 Mon Sep 17 00:00:00 2001 From: Tom McDonald Date: Tue, 8 Apr 2014 15:20:29 -0400 Subject: [PATCH] Use clearer variable names for mark backups --- plugin/exchange.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/exchange.vim b/plugin/exchange.vim index d3222de..d779deb 100644 --- a/plugin/exchange.vim +++ b/plugin/exchange.vim @@ -1,6 +1,6 @@ function! s:exchange(x, y, reverse) - let a = getpos("'a") - let b = getpos("'b") + let mark_a = getpos("'a") + let mark_b = getpos("'b") let reg_z = getreg('z') let reg_z_mode = getregtype('z') let reg_unnamed = getreg('"') @@ -22,8 +22,8 @@ function! s:exchange(x, y, reverse) call cursor(a:y[2][1], a:y[2][2]) endif - call setpos("'a", a) - call setpos("'b", b) + call setpos("'a", mark_a) + call setpos("'b", mark_b) call setreg('z', reg_z, reg_z_mode) call setreg('"', reg_unnamed, reg_unnamed_mode) endfunction