aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_jumps.vim
diff options
context:
space:
mode:
authorlonerover <pathfinder1644@yahoo.com>2017-01-01 00:32:50 +0800
committerJustin M. Keyes <justinkz@gmail.com>2016-12-31 17:32:50 +0100
commit5366242789a4c2f53c52d2fe2f6be7284fcc73b5 (patch)
tree24d8f8750b2053d10d8f46fbf876a333cbdeec1d /src/nvim/testdir/test_jumps.vim
parentb37da9c66425464aa6a44eeffe9f05173dc42254 (diff)
downloadrneovim-5366242789a4c2f53c52d2fe2f6be7284fcc73b5.tar.gz
rneovim-5366242789a4c2f53c52d2fe2f6be7284fcc73b5.tar.bz2
rneovim-5366242789a4c2f53c52d2fe2f6be7284fcc73b5.zip
vim-patch:7.4.1970 (#5850)
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 vim/vim#892) https://github.com/vim/vim/commit/70e136e1d86ea1d795774824c7b712245912946d
Diffstat (limited to 'src/nvim/testdir/test_jumps.vim')
-rw-r--r--src/nvim/testdir/test_jumps.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_jumps.vim b/src/nvim/testdir/test_jumps.vim
new file mode 100644
index 0000000000..5a3717d165
--- /dev/null
+++ b/src/nvim/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