To: vim_dev@googlegroups.com Subject: Patch 8.2.1832 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1832 Problem: readdirex() error is displayed as a message. (Yegappan Lakshmanan) Solution: Use semsg() instead of smsg(). Files: src/fileio.c, src/testdir/test_functions.vim *** ../vim-8.2.1831/src/fileio.c 2020-10-03 17:04:34.114272292 +0200 --- src/fileio.c 2020-10-11 14:17:25.588177116 +0200 *************** *** 4743,4749 **** if (!ok) { failed = TRUE; ! smsg(_(e_notopen), path); } else { --- 4743,4749 ---- if (!ok) { failed = TRUE; ! semsg(_(e_notopen), path); } else { *************** *** 4813,4819 **** if (dirp == NULL) { failed = TRUE; ! smsg(_(e_notopen), path); } else { --- 4813,4819 ---- if (dirp == NULL) { failed = TRUE; ! semsg(_(e_notopen), path); } else { *** ../vim-8.2.1831/src/testdir/test_functions.vim 2020-10-05 20:38:02.469117560 +0200 --- src/testdir/test_functions.vim 2020-10-11 14:16:48.428274772 +0200 *************** *** 1959,1964 **** --- 1959,1966 ---- \ ['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() *** ../vim-8.2.1831/src/version.c 2020-10-11 14:22:18.763382728 +0200 --- src/version.c 2020-10-11 14:27:54.614438100 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 1832, /**/ -- hundred-and-one symptoms of being an internet addict: 61. Your best friends know your e-mail address, but neither your phone number nor the address where you live. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///