view src/testdir/test_signs.in @ 9266:78fc4c84476e v7.4.1916

commit https://github.com/vim/vim/commit/b8aefa46adf5e825118716e142fab7ef32076475 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 10 23:02:56 2016 +0200 patch 7.4.1916 Problem: No proper test for what 7.4.1906 fixes. Solution: Add a test for reading many lines.
author Christian Brabandt <cb@256bit.org>
date Fri, 10 Jun 2016 23:15:05 +0200
parents 6a598be6d4e8
children
line wrap: on
line source

Tests for signs
STARTTEST
:so small.vim
:if !has("signs")
:  e! test.ok
:  wq! test.out
:endif
:"
:sign define JumpSign text=x
:exe 'sign place 42 line=2 name=JumpSign buffer=' . bufnr('')
:" Split the window to the bottom to verify :sign-jump will stay in the current
:" window if the buffer is displayed there
:bot split
:exe 'sign jump 42 buffer=' . bufnr('')
:call append(line('$'), winnr())
:$-1,$w! test.out
ENDTEST

STARTTEST
:qa!
ENDTEST