Mercurial > vim
diff src/misc1.c @ 2162:0527eb0f6918 vim73
After recovery check if the text changed. If it did mark the buffer as
modified.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 15 May 2010 17:06:53 +0200 |
parents | 24100651daa9 |
children | 733f0dc510c3 c6f1aa1e9f32 |
line wrap: on
line diff
--- a/src/misc1.c +++ b/src/misc1.c @@ -2514,17 +2514,26 @@ changed() msg_scroll = save_msg_scroll; } } - curbuf->b_changed = TRUE; - ml_setflags(curbuf); + changed_int(); + } + ++curbuf->b_changedtick; +} + +/* + * Internal part of changed(), no user interaction. + */ + void +changed_int() +{ + curbuf->b_changed = TRUE; + ml_setflags(curbuf); #ifdef FEAT_WINDOWS - check_status(curbuf); - redraw_tabline = TRUE; + check_status(curbuf); + redraw_tabline = TRUE; #endif #ifdef FEAT_TITLE - need_maketitle = TRUE; /* set window title later */ -#endif - } - ++curbuf->b_changedtick; + need_maketitle = TRUE; /* set window title later */ +#endif } static void changedOneline __ARGS((buf_T *buf, linenr_T lnum));