aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-23 16:12:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-23 16:12:43 +1200
commit4c7a6b1e5640e8979dda8dd0553a232745501bad (patch)
treef5e86a91ea71cbd924434a4cdb02c4564154d48c
parentRemove useless user command (diff)
downloadvim-fixed-join-4c7a6b1e5640e8979dda8dd0553a232745501bad.tar.gz
vim-fixed-join-4c7a6b1e5640e8979dda8dd0553a232745501bad.zip
Remove useless cursor restoration code
:join already keeps the cursor still.
-rw-r--r--plugin/fixed_join.vim9
1 files changed, 0 insertions, 9 deletions
diff --git a/plugin/fixed_join.vim b/plugin/fixed_join.vim
index d039d53..7d7f718 100644
--- a/plugin/fixed_join.vim
+++ b/plugin/fixed_join.vim
@@ -31,15 +31,6 @@ function! s:FixedJoin()
let l:command = '.,' . l:join_line . 'join'
execute l:command
- " Return the cursor to the saved position (Vim 6.0 fallback)
- if exists('*cursor')
- call cursor(l:cursor_line, l:cursor_col)
- else
- execute 'normal! '
- \ . l:cursor_line . 'G'
- \ . l:cursor_col . '|'
- endif
-
endfunction
" Create mapping proxy to the function just defined