vim-patch:8.0.1807: function to set terminal name is too long

Problem:    Function to set terminal name is too long.
Solution:   Refactor the function.  Fix typo in test.
69e056915c
This commit is contained in:
Jan Edmund Lazo 2018-10-06 00:19:39 -04:00
parent 6fe9a12268
commit 22804c66a5

View File

@ -262,7 +262,7 @@ func Test_set_ttytype()
" in travis on some builds. Why? Catch both for now " in travis on some builds. Why? Catch both for now
try try
set ttytype= set ttytype=
call assert_report('set ttype= did not fail') call assert_report('set ttytype= did not fail')
catch /E529\|E522/ catch /E529\|E522/
endtry endtry
@ -270,7 +270,7 @@ func Test_set_ttytype()
" check for failure of finding the entry and for missing 'cm' entry. " check for failure of finding the entry and for missing 'cm' entry.
try try
set ttytype=xxx set ttytype=xxx
call assert_report('set ttype=xxx did not fail') call assert_report('set ttytype=xxx did not fail')
catch /E522\|E437/ catch /E522\|E437/
endtry endtry