mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
parent
4ed1a7e561
commit
a4e711dae7
19
tests/test_invalid_unicode.vim
Normal file
19
tests/test_invalid_unicode.vim
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
set encoding=utf-8
|
||||||
|
let g:powerline_config_paths = [expand('<sfile>:p:h:h') . '/powerline/config_files']
|
||||||
|
set laststatus=2
|
||||||
|
set showtabline=2
|
||||||
|
edit `="\xFF"`
|
||||||
|
redir => g:messages
|
||||||
|
try
|
||||||
|
source powerline/bindings/vim/plugin/powerline.vim
|
||||||
|
redrawstatus!
|
||||||
|
catch
|
||||||
|
call writefile(['Unexpected exception', v:exception], 'message.fail')
|
||||||
|
cquit
|
||||||
|
endtry
|
||||||
|
redir END
|
||||||
|
if g:messages =~# '\v\S'
|
||||||
|
call writefile(['Unexpected messages'] + split(g:messages, "\n", 1), 'message.fail')
|
||||||
|
cquit
|
||||||
|
endif
|
||||||
|
qall!
|
Loading…
x
Reference in New Issue
Block a user