Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 11323:3e799a37ea22 v8.0.0547
patch 8.0.0547: extra line break in verbosefile
commit https://github.com/vim/vim/commit/52604f2454e5369f861d3ce34764f74a0999c773
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 7 16:17:39 2017 +0200
patch 8.0.0547: extra line break in verbosefile
Problem: Extra line break in verbosefile when using ":echomsg". (Ingo
Karkat)
Solution: Don't call msg_start(). (closes #1618)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 07 Apr 2017 16:30:04 +0200 |
parents | b19377368387 |
children | 129077fb57e6 |
comparison
equal
deleted
inserted
replaced
11322:106ad402619a | 11323:3e799a37ea22 |
---|---|
410 cnoremap <expr> <F6> Check_cmdline('=') | 410 cnoremap <expr> <F6> Check_cmdline('=') |
411 call feedkeys("a\<C-R>=MyCmd a\<F6>\<Esc>\<Esc>", "xt") | 411 call feedkeys("a\<C-R>=MyCmd a\<F6>\<Esc>\<Esc>", "xt") |
412 cunmap <F6> | 412 cunmap <F6> |
413 endfunc | 413 endfunc |
414 | 414 |
415 func Test_verbosefile() | |
416 set verbosefile=Xlog | |
417 echomsg 'foo' | |
418 echomsg 'bar' | |
419 set verbosefile= | |
420 let log = readfile('Xlog') | |
421 call assert_match("foo\nbar", join(log, "\n")) | |
422 call delete('Xlog') | |
423 endfunc | |
424 | |
415 set cpo& | 425 set cpo& |