X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=enter.c;h=6cf9d8dd5f15a7408abfc36b272ff39285ebba3e;hp=4636c3abd56114dd434917543b0d39fee7dfda80;hb=0b94e5518f3859ba10697f34978122d8e3adb334;hpb=f353d90d89bbdaa8ff3f3c619384948ec8fe9c14 diff --git a/enter.c b/enter.c index 4636c3a..6cf9d8d 100644 --- a/enter.c +++ b/enter.c @@ -17,6 +17,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "mutt_menu.h" #include "mutt_curses.h" @@ -32,8 +36,6 @@ enum M_REDRAW_LINE /* redraw entire line */ }; -static int _mutt_enter_string_foo (char *buf, size_t buflen, int y, int x, int flags, int multiple, char ***files, int *numfiles, ENTER_STATE *state, int att_save); - static int my_wcwidth (wchar_t wc) { int n = wcwidth (wc); @@ -186,23 +188,9 @@ int mutt_enter_string(char *buf, size_t buflen, int y, int x, int flags) return rv; } -int _mutt_enter_string(char *buf, size_t buflen, int y, int x, +int _mutt_enter_string (char *buf, size_t buflen, int y, int x, int flags, int multiple, char ***files, int *numfiles, ENTER_STATE *state) -{ - return _mutt_enter_string_foo(buf,buflen,y,x,flags,multiple,files,numfiles,state,0); -} - -int _mutt_enter_string_att(char *buf, size_t buflen, int y, int x, - int flags, int multiple, char ***files, int *numfiles, - ENTER_STATE *state) -{ - return _mutt_enter_string_foo(buf,buflen,y,x,flags,multiple,files,numfiles,state,1); -} - -static int _mutt_enter_string_foo (char *buf, size_t buflen, int y, int x, - int flags, int multiple, char ***files, int *numfiles, - ENTER_STATE *state, int att_save) /* the last parameter is a hack!! */ { int width = COLS - x - 1; int redraw; @@ -630,9 +618,10 @@ self_insert: /* use the raw keypress */ ch = LastKey; - if (att_save && ch == '.') + if ((ch == '#') && (flags & M_LASTFOLDER)) { rv = 2; + my_wcstombs (buf, buflen, state->wbuf, state->lastchar); goto bye; }