view src/testdir/test_signs.in @ 8570:52b13e25b21d

commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 15 17:52:10 2016 +0100 Add missing test file.
author Christian Brabandt <cb@256bit.org>
date Tue, 15 Mar 2016 18:00:14 +0100
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