diff options
author | Xin LI <delphij@FreeBSD.org> | 2011-05-09 18:30:23 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2011-05-09 18:30:23 +0000 |
commit | ed915d8294a373813108148f47b424e1152e4a5d (patch) | |
tree | 345f36f8a19a9fdb66be9a0a5676b2c0abc67bae /prompt.c | |
parent | f4cb5a505fa28e14d4b01e5c934bcf965a1822b6 (diff) |
Diffstat (limited to 'prompt.c')
-rw-r--r-- | prompt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/prompt.c b/prompt.c index ff2345cd63548..dce34f3272d4e 100644 --- a/prompt.c +++ b/prompt.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2009 Mark Nudelman + * Copyright (C) 1984-2011 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. @@ -303,6 +303,9 @@ protochar(c, where, iseditproto) case 'f': /* File name */ ap_str(get_filename(curr_ifile)); break; + case 'F': /* Last component of file name */ + ap_str(last_component(get_filename(curr_ifile))); + break; case 'i': /* Index into list of files */ #if TAGS if (ntags()) @@ -363,6 +366,7 @@ protochar(c, where, iseditproto) case 't': /* Truncate trailing spaces in the message */ while (mp > message && mp[-1] == ' ') mp--; + *mp = '\0'; break; case 'T': /* Type of list */ #if TAGS |