view src/testdir/test_goto.vim @ 9284:78712a2f687a v7.4.1925

commit https://github.com/vim/vim/commit/2d35899721da0e9359a9fe1059554f8c4ea7f0c1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 12 21:20:54 2016 +0200 patch 7.4.1925 Problem: Viminfo does not merge file marks properly. Solution: Use a timestamp. Add the :clearjumps command.
author Christian Brabandt <cb@256bit.org>
date Sun, 12 Jun 2016 21:30:06 +0200
parents f0d7dfb136bc
children 1b4946fa3777
line wrap: on
line source

" Test commands that jump somewhere.

func Test_geedee()
  new
  call setline(1, ["Filename x;", "", "int Filename", "int func() {", "Filename y;"])
  /y;/
  normal gD
  call assert_equal(1, line('.'))
  quit!
endfunc