mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.1.1775: error message may be empty in filetype test
Problem: Error message may be empty in filetype test. Solution: Use v:exception instead. (Daniel Hahler, closs #4744)
This commit is contained in:
parent
3c610c9638
commit
eee9f65b2a
@ -521,7 +521,7 @@ func CheckItems(checks)
|
|||||||
try
|
try
|
||||||
exe 'edit ' . fnameescape(names[i])
|
exe 'edit ' . fnameescape(names[i])
|
||||||
catch
|
catch
|
||||||
call assert_report('cannot edit "' . names[i] . '": ' . v:errmsg)
|
call assert_report('cannot edit "' . names[i] . '": ' . v:exception)
|
||||||
endtry
|
endtry
|
||||||
if &filetype == '' && &readonly
|
if &filetype == '' && &readonly
|
||||||
" File exists but not able to edit it (permission denied)
|
" File exists but not able to edit it (permission denied)
|
||||||
|
@ -777,6 +777,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1775,
|
||||||
/**/
|
/**/
|
||||||
1774,
|
1774,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user