aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorMatthieu Coudron <teto@users.noreply.github.com>2021-04-18 17:12:41 +0200
committerGitHub <noreply@github.com>2021-04-18 17:12:41 +0200
commite343437bb6b82a48b1001d98a08fb5c63dccda30 (patch)
treee9f487113ba6e3402e837fc7872a250183980077 /src/nvim/testdir
parenta129887c00a2d5e49fc551ba0bbffe88cefb56c0 (diff)
parent5b8575fa0dc689e6de90ee3cc6805c0f8742c320 (diff)
downloadrneovim-e343437bb6b82a48b1001d98a08fb5c63dccda30.tar.gz
rneovim-e343437bb6b82a48b1001d98a08fb5c63dccda30.tar.bz2
rneovim-e343437bb6b82a48b1001d98a08fb5c63dccda30.zip
Merge pull request #12323 from da-x/orphaned-signs
Handle 'orphaned signs' on line deletion for signcolumn >= 2
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_signs.vim21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/nvim/testdir/test_signs.vim b/src/nvim/testdir/test_signs.vim
index f6b96c1e5d..9753100375 100644
--- a/src/nvim/testdir/test_signs.vim
+++ b/src/nvim/testdir/test_signs.vim
@@ -1628,26 +1628,7 @@ func Test_sign_lnum_adjust()
" Delete the line with the sign
call deletebufline('', 4)
let l = sign_getplaced(bufnr(''))
- call assert_equal(4, l[0].signs[0].lnum)
-
- " Undo the delete operation
- undo
- let l = sign_getplaced(bufnr(''))
- call assert_equal(5, l[0].signs[0].lnum)
-
- " Break the undo
- let &undolevels=&undolevels
-
- " Delete few lines at the end of the buffer including the line with the sign
- " Sign line number should not change (as it is placed outside of the buffer)
- call deletebufline('', 3, 6)
- let l = sign_getplaced(bufnr(''))
- call assert_equal(5, l[0].signs[0].lnum)
-
- " Undo the delete operation. Sign should be restored to the previous line
- undo
- let l = sign_getplaced(bufnr(''))
- call assert_equal(5, l[0].signs[0].lnum)
+ call assert_equal(0, len(l[0].signs))
sign unplace * group=*
sign undefine sign1