1
0
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:
Bram Moolenaar 2020-10-11 14:28:11 +02:00
parent ef16c90423
commit aab9fada4a
3 changed files with 6 additions and 2 deletions

View File

@ -4743,7 +4743,7 @@ readdir_core(
if (!ok) if (!ok)
{ {
failed = TRUE; failed = TRUE;
smsg(_(e_notopen), path); semsg(_(e_notopen), path);
} }
else else
{ {
@ -4813,7 +4813,7 @@ readdir_core(
if (dirp == NULL) if (dirp == NULL)
{ {
failed = TRUE; failed = TRUE;
smsg(_(e_notopen), path); semsg(_(e_notopen), path);
} }
else else
{ {

View File

@ -1959,6 +1959,8 @@ func Test_readdirex()
\ ['bar.txt_file', 'dir_dir', 'foo.txt_file', 'link_link']) \ ['bar.txt_file', 'dir_dir', 'foo.txt_file', 'link_link'])
endif endif
eval 'Xdir'->delete('rf') eval 'Xdir'->delete('rf')
call assert_fails('call readdirex("doesnotexist")', 'E484:')
endfunc endfunc
func Test_readdirex_sort() func Test_readdirex_sort()

View File

@ -750,6 +750,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 */
/**/
1832,
/**/ /**/
1831, 1831,
/**/ /**/