diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-10-12 19:14:26 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-10-12 19:14:26 +0000 |
commit | c67764a7053fd2b4fe9c7016fb89cf81691edbe4 (patch) | |
tree | 2ca53f371454974840e9b54a93a9dc0fc83c0e23 /src/fileio.c | |
parent | 2cc93184012d58475cb1a6236ec70174aaedc2f0 (diff) | |
download | vim-git-c67764a7053fd2b4fe9c7016fb89cf81691edbe4.tar.gz |
updated for version 7.0-132v7.0.132
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/fileio.c b/src/fileio.c index 7bab84e55..abbe1e7a0 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -416,20 +416,20 @@ readfile(fname, sfname, from, lines_to_skip, lines_to_read, eap, flags) msg_scroll = msg_save; return FAIL; } - } -#endif -#if defined(MSDOS) || defined(MSWIN) || defined(OS2) - /* - * MS-Windows allows opening a device, but we will probably get stuck - * trying to read it. - */ - if (!p_odev && mch_nodetype(fname) == NODE_WRITABLE) - { - filemess(curbuf, fname, (char_u *)_("is a device (disabled with 'opendevice' option"), 0); - msg_end(); - msg_scroll = msg_save; - return FAIL; +# if defined(MSDOS) || defined(MSWIN) || defined(OS2) + /* + * MS-Windows allows opening a device, but we will probably get stuck + * trying to read it. + */ + if (!p_odev && mch_nodetype(fname) == NODE_WRITABLE) + { + filemess(curbuf, fname, (char_u *)_("is a device (disabled with 'opendevice' option"), 0); + msg_end(); + msg_scroll = msg_save; + return FAIL; + } +# endif } #endif |