summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-21 22:04:51 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-21 22:04:51 +0000
commit8f7fd65b249e9680866dab628622fe093ac2abc9 (patch)
treea1fb5dcec21a549dd31438f503c3121f234d3943 /src/fileio.c
parent030f0dfad591422e64a75629a60309974af80938 (diff)
downloadvim-git-8f7fd65b249e9680866dab628622fe093ac2abc9.tar.gz
updated for version 7.0203
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 7cbbfb1ea..ed5a653d9 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2318,16 +2318,13 @@ failed:
p = msg_trunc_attr(IObuff, FALSE, 0);
if (read_stdin || read_buffer || restart_edit != 0
|| (msg_scrolled != 0 && !need_wait_return))
- {
/* Need to repeat the message after redrawing when:
* - When reading from stdin (the screen will be cleared next).
* - When restart_edit is set (otherwise there will be a delay
* before redrawing).
* - When the screen was scrolled but there is no wait-return
* prompt. */
- set_keep_msg(p);
- keep_msg_attr = 0;
- }
+ set_keep_msg(p, 0);
msg_scrolled_ign = FALSE;
}
@@ -2335,6 +2332,7 @@ failed:
if (newfile && (error
#ifdef FEAT_MBYTE
|| conv_error != 0
+ || (illegal_byte > 0 && bad_char_behavior != BAD_KEEP)
#endif
))
curbuf->b_p_ro = TRUE;
@@ -4377,8 +4375,7 @@ restore_backup:
STRCAT(IObuff, shortmess(SHM_WRI) ? _(" [w]") : _(" written"));
}
- set_keep_msg(msg_trunc_attr(IObuff, FALSE, 0));
- keep_msg_attr = 0;
+ set_keep_msg(msg_trunc_attr(IObuff, FALSE, 0), 0);
}
/* When written everything correctly: reset 'modified'. Unless not