Mercurial > vim
comparison src/testdir/test_tabline.vim @ 8874:ccab37bb9ac9 v7.4.1724
commit https://github.com/vim/vim/commit/73cd8fb3e87e4b29dfc489f58e56dee1839c18e5
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 11 22:49:03 2016 +0200
patch 7.4.1724
Problem: Tabline test fails in GUI.
Solution: Remove 'e' from 'guioptions'.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 11 Apr 2016 23:00:05 +0200 |
parents | 4d4de770f970 |
children | 325e4a8ba1b6 |
comparison
equal
deleted
inserted
replaced
8873:c4939a6c52f0 | 8874:ccab37bb9ac9 |
---|---|
12 call eval('unknown expression') | 12 call eval('unknown expression') |
13 return '' | 13 return '' |
14 endfunction | 14 endfunction |
15 | 15 |
16 function! Test_caught_error_in_tabline() | 16 function! Test_caught_error_in_tabline() |
17 if has('gui') | |
18 set guioptions-=e | |
19 endif | |
17 let showtabline_save = &showtabline | 20 let showtabline_save = &showtabline |
18 set showtabline=2 | 21 set showtabline=2 |
19 let s:func_in_tabline_called = 0 | 22 let s:func_in_tabline_called = 0 |
20 let tabline = '%{TablineWithCaughtError()}' | 23 let tabline = '%{TablineWithCaughtError()}' |
21 let &tabline = tabline | 24 let &tabline = tabline |
25 set tabline= | 28 set tabline= |
26 let &showtabline = showtabline_save | 29 let &showtabline = showtabline_save |
27 endfunction | 30 endfunction |
28 | 31 |
29 function! Test_tabline_will_be_disabled_with_error() | 32 function! Test_tabline_will_be_disabled_with_error() |
33 if has('gui') | |
34 set guioptions-=e | |
35 endif | |
30 let showtabline_save = &showtabline | 36 let showtabline_save = &showtabline |
31 set showtabline=2 | 37 set showtabline=2 |
32 let s:func_in_tabline_called = 0 | 38 let s:func_in_tabline_called = 0 |
33 let tabline = '%{TablineWithError()}' | 39 let tabline = '%{TablineWithError()}' |
34 try | 40 try |