diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-02 20:20:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-02 20:20:09 +0200 |
commit | b2c0350c67736b0e054718fb5bf136147ee2261e (patch) | |
tree | a1b4a9651813cbb1d8cb1b2362760f5c54e47976 /src/undo.c | |
parent | 730cde924cea50977bdbfa5b977180bfaa188a27 (diff) | |
download | vim-git-b2c0350c67736b0e054718fb5bf136147ee2261e.tar.gz |
Make updating text for conceal mode simpler. A few compiler warning fixes.
Diffstat (limited to 'src/undo.c')
-rw-r--r-- | src/undo.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/undo.c b/src/undo.c index 33ca01e03..497fc6b50 100644 --- a/src/undo.c +++ b/src/undo.c @@ -1551,7 +1551,7 @@ u_read_undo(name, hash, orig_name) int num_head = 0; long old_header_seq, new_header_seq, cur_header_seq; long seq_last, seq_cur; - long_u last_save_nr = 0; + long last_save_nr = 0; short old_idx = -1, new_idx = -1, cur_idx = -1; long num_read_uhps = 0; time_t seq_time; @@ -2662,6 +2662,18 @@ u_undo_end(did_undo, absolute) else u_add_time(msgbuf, sizeof(msgbuf), uhp->uh_time); +#ifdef FEAT_CONCEAL + { + win_T *wp; + + FOR_ALL_WINDOWS(wp) + { + if (wp->w_buffer == curbuf && wp->w_p_conceal) + redraw_win_later(wp, NOT_VALID); + } + } +#endif + smsg((char_u *)_("%ld %s; %s #%ld %s"), u_oldcount < 0 ? -u_oldcount : u_oldcount, _(msgstr), @@ -3230,7 +3242,7 @@ u_eval_tree(first_uhp, list) if (dict == NULL) return; dict_add_nr_str(dict, "seq", uhp->uh_seq, NULL); - dict_add_nr_str(dict, "time", uhp->uh_time, NULL); + dict_add_nr_str(dict, "time", (long)uhp->uh_time, NULL); if (uhp == curbuf->b_u_newhead) dict_add_nr_str(dict, "newhead", 1, NULL); if (uhp == curbuf->b_u_curhead) |