diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-01 14:04:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-01 14:04:51 +0200 |
commit | 70e136e1d86ea1d795774824c7b712245912946d (patch) | |
tree | 4cb74e5694a9b551be06953a6c3c1382fc73c90f /src/testdir/test_jumps.vim | |
parent | 24cf233ef9e92f947618c55d8bff423898a45c24 (diff) | |
download | vim-git-70e136e1d86ea1d795774824c7b712245912946d.tar.gz |
patch 7.4.1970v7.4.1970
Problem: Using ":insert" in an empty buffer sets the jump mark. (Ingo
Karkat)
Solution: Don't adjust marks when replacing the empty line in an empty
buffer. (closes #892)
Diffstat (limited to 'src/testdir/test_jumps.vim')
-rw-r--r-- | src/testdir/test_jumps.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_jumps.vim b/src/testdir/test_jumps.vim new file mode 100644 index 000000000..5a3717d16 --- /dev/null +++ b/src/testdir/test_jumps.vim @@ -0,0 +1,11 @@ +func Test_empty_buffer() + new + insert +a +b +c +d +. + call assert_equal(1, line("''")) + bwipe! +endfunc |