Mercurial > vim
comparison src/testdir/test_options.vim @ 13872:9d3ddfa88a56 v8.0.1807
patch 8.0.1807: function to set terminal name is too long
commit https://github.com/vim/vim/commit/69e056915c4145b7b64c60963797692a5b293561
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 10 14:11:52 2018 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 10 May 2018 14:15:05 +0200 |
parents | f64c5e636c9f |
children | fc03fabbedc5 |
comparison
equal
deleted
inserted
replaced
13871:4c0ff440f460 | 13872:9d3ddfa88a56 |
---|---|
282 call assert_equal(&ttytype, &term) | 282 call assert_equal(&ttytype, &term) |
283 " "set ttytype=" gives E522 instead of E529 | 283 " "set ttytype=" gives E522 instead of E529 |
284 " in travis on some builds. Why? Catch both for now | 284 " in travis on some builds. Why? Catch both for now |
285 try | 285 try |
286 set ttytype= | 286 set ttytype= |
287 call assert_report('set ttype= did not fail') | 287 call assert_report('set ttytype= did not fail') |
288 catch /E529\|E522/ | 288 catch /E529\|E522/ |
289 endtry | 289 endtry |
290 | 290 |
291 " Some systems accept any terminal name and return dumb settings, | 291 " Some systems accept any terminal name and return dumb settings, |
292 " check for failure of finding the entry and for missing 'cm' entry. | 292 " check for failure of finding the entry and for missing 'cm' entry. |
293 try | 293 try |
294 set ttytype=xxx | 294 set ttytype=xxx |
295 call assert_report('set ttype=xxx did not fail') | 295 call assert_report('set ttytype=xxx did not fail') |
296 catch /E522\|E437/ | 296 catch /E522\|E437/ |
297 endtry | 297 endtry |
298 | 298 |
299 set ttytype& | 299 set ttytype& |
300 call assert_equal(&ttytype, &term) | 300 call assert_equal(&ttytype, &term) |