diff options
author | Bram Moolenaar <Bram@vim.org> | 2004-12-19 22:46:22 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2004-12-19 22:46:22 +0000 |
commit | 1cd871b5341bf43ee99e136844e3131014880f92 (patch) | |
tree | 6bd9573dbc14de3c4ec85e424cbec9c8d1ee0ed8 /src/message.c | |
parent | 46c9c73de8def79baf8f0a34a12549f6c14944f3 (diff) |
updated for version 7.0023v7.0023
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/message.c b/src/message.c index caf7ac0a48..6a23864785 100644 --- a/src/message.c +++ b/src/message.c @@ -2897,12 +2897,7 @@ msg_show_console_dialog(message, buttons, dfltbutton) } /* advance to the next character */ -#ifdef FEAT_MBYTE - if (has_mbyte) - r += (*mb_ptr2len_check)(r); - else -#endif - ++r; + mb_ptr_adv(r); } if (copy) @@ -2910,12 +2905,7 @@ msg_show_console_dialog(message, buttons, dfltbutton) *msgp++ = ':'; *msgp++ = ' '; *msgp = NUL; -#ifdef FEAT_MBYTE - if (has_mbyte) - hotkp += (*mb_ptr2len_check)(hotkp); - else -#endif - ++hotkp; + mb_ptr_adv(hotkp); *hotkp = NUL; } else @@ -3148,11 +3138,8 @@ do_browse(flags, title, dflt, ext, initdir, filter, buf) if (fname != NULL && *fname != NUL && !mch_isdir(fname)) { /* Remove the file name. */ - char_u *s = get_past_head(fname); - char_u *tail = gettail(fname); + char_u *tail = gettail_sep(fname); - while (tail > s && vim_ispathsep(tail[-1])) - --tail; if (tail == fname) *tail++ = '.'; /* use current dir */ *tail = NUL; |