1
0
forked from aniani/vim

patch 8.2.2856: get readonly error for device that can't be written to

Problem:    Get readonly error for device that can't be written to.
Solution:   Check for being able to write first. (closes #8205)
This commit is contained in:
Bram Moolenaar
2021-05-15 23:21:05 +02:00
parent 0820f4de58
commit 50157ef1c2
3 changed files with 21 additions and 2 deletions

View File

@@ -285,7 +285,7 @@ func Test_write_errors()
\ && getftype('/dev/loop0') == 'bdev' && !IsRoot()
new
edit /dev/loop0
call assert_fails('write', 'E505: ')
call assert_fails('write', 'E503: ')
call assert_fails('write!', 'E503: ')
close!
endif