diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-20 18:36:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-20 18:36:54 +0200 |
commit | e11d61a3b1cdedf3144de697a2b38af62c3a78d8 (patch) | |
tree | 780b910e267d2808570462891177c769f5fd855c /src/eval.c | |
parent | 66e29d7112e437b2b50efe1f82c7e892736d23e4 (diff) |
patch 7.4.2231v7.4.2231
Problem: ":oldfiles" output is a very long list.
Solution: Add a pattern argument. (Coot, closes #575)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/eval.c b/src/eval.c index 9b3f248b0e..cbfd98feac 100644 --- a/src/eval.c +++ b/src/eval.c @@ -8929,60 +8929,6 @@ last_set_msg(scid_T scriptID) } } -/* - * List v:oldfiles in a nice way. - */ - void -ex_oldfiles(exarg_T *eap UNUSED) -{ - list_T *l = vimvars[VV_OLDFILES].vv_list; - listitem_T *li; - int nr = 0; - - if (l == NULL) - msg((char_u *)_("No old files")); - else - { - msg_start(); - msg_scroll = TRUE; - for (li = l->lv_first; li != NULL && !got_int; li = li->li_next) - { - msg_outnum((long)++nr); - MSG_PUTS(": "); - msg_outtrans(get_tv_string(&li->li_tv)); - msg_putchar('\n'); - out_flush(); /* output one line at a time */ - ui_breakcheck(); - } - /* Assume "got_int" was set to truncate the listing. */ - got_int = FALSE; - -#ifdef FEAT_BROWSE_CMD - if (cmdmod.browse) - { - quit_more = FALSE; - nr = prompt_for_number(FALSE); - msg_starthere(); - if (nr > 0) - { - char_u *p = list_find_str(get_vim_var_list(VV_OLDFILES), - (long)nr); - - if (p != NULL) - { - p = expand_env_save(p); - eap->arg = p; - eap->cmdidx = CMD_edit; - cmdmod.browse = FALSE; - do_exedit(eap, NULL); - vim_free(p); - } - } - } -#endif - } -} - /* reset v:option_new, v:option_old and v:option_type */ void reset_v_option_vars(void) |