forked from aniani/vim
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)
12 lines
102 B
VimL
12 lines
102 B
VimL
func Test_empty_buffer()
|
|
new
|
|
insert
|
|
a
|
|
b
|
|
c
|
|
d
|
|
.
|
|
call assert_equal(1, line("''"))
|
|
bwipe!
|
|
endfunc
|