aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION2
-rw-r--r--plugin/fixed_join.vim9
2 files changed, 10 insertions, 1 deletions
diff --git a/VERSION b/VERSION
index 267577d..8f0916f 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.4.1
+0.5.0
diff --git a/plugin/fixed_join.vim b/plugin/fixed_join.vim
index 1610011..2abb3a0 100644
--- a/plugin/fixed_join.vim
+++ b/plugin/fixed_join.vim
@@ -31,6 +31,15 @@ function! s:FixedJoin()
let l:command = l:cursor_line . ',' . 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 modeless mapping target for the function just defined