Mercurial > vim
comparison src/testdir/test_gf.vim @ 21020:6c634e63989c v8.2.1061
patch 8.2.1061: insufficient testing for src/window.c
Commit: https://github.com/vim/vim/commit/5d3c9f8c2a0fc29ba4ac8e0f052378b64d9e3dd3
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 26 20:41:39 2020 +0200
patch 8.2.1061: insufficient testing for src/window.c
Problem: Insufficient testing for src/window.c.
Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6345)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Jun 2020 20:45:08 +0200 |
parents | 2c3e7a6bd6c6 |
children | d37e4a856246 |
comparison
equal
deleted
inserted
replaced
21019:f5dae5cbcdec | 21020:6c634e63989c |
---|---|
72 normal 2GfX | 72 normal 2GfX |
73 normal gF | 73 normal gF |
74 call assert_equal('Xfile', bufname('%')) | 74 call assert_equal('Xfile', bufname('%')) |
75 call assert_equal(2, getcurpos()[1]) | 75 call assert_equal(2, getcurpos()[1]) |
76 | 76 |
77 " jumping to the file/line with CTRL-W_F | |
78 %bw! | |
79 edit Xfile1 | |
80 call setline(1, ['one', 'Xfile:4', 'three']) | |
81 exe "normal 2G\<C-W>F" | |
82 call assert_equal('Xfile', bufname('%')) | |
83 call assert_equal(4, getcurpos()[1]) | |
84 | |
77 set isfname& | 85 set isfname& |
78 call delete('Xfile') | 86 call delete('Xfile') |
79 call delete('Xfile2') | 87 call delete('Xfile2') |
80 bwipe Xfile | 88 %bw! |
81 bwipe Xfile2 | |
82 endfunc | 89 endfunc |
83 | 90 |
84 " Test for invoking 'gf' on a ${VAR} variable | 91 " Test for invoking 'gf' on a ${VAR} variable |
85 func Test_gf() | 92 func Test_gf() |
86 if has("ebcdic") | 93 if has("ebcdic") |