forked from aniani/vim
patch 8.2.1832: readdirex() error is displayed as a message
Problem: readdirex() error is displayed as a message. (Yegappan Lakshmanan) Solution: Use semsg() instead of smsg().
This commit is contained in:
parent
ef16c90423
commit
aab9fada4a
@ -4743,7 +4743,7 @@ readdir_core(
|
||||
if (!ok)
|
||||
{
|
||||
failed = TRUE;
|
||||
smsg(_(e_notopen), path);
|
||||
semsg(_(e_notopen), path);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -4813,7 +4813,7 @@ readdir_core(
|
||||
if (dirp == NULL)
|
||||
{
|
||||
failed = TRUE;
|
||||
smsg(_(e_notopen), path);
|
||||
semsg(_(e_notopen), path);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1959,6 +1959,8 @@ func Test_readdirex()
|
||||
\ ['bar.txt_file', 'dir_dir', 'foo.txt_file', 'link_link'])
|
||||
endif
|
||||
eval 'Xdir'->delete('rf')
|
||||
|
||||
call assert_fails('call readdirex("doesnotexist")', 'E484:')
|
||||
endfunc
|
||||
|
||||
func Test_readdirex_sort()
|
||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1832,
|
||||
/**/
|
||||
1831,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user