From: Pierre Habouzit Date: Sun, 3 Dec 2006 22:45:26 +0000 (+0100) Subject: cosmetics X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=0a19973a356fb85d0b1e2a2f02820a3e5071f402;hp=25594eeaad2af2d06328b47283cfba72fa3bc8cd cosmetics Signed-off-by: Pierre Habouzit --- diff --git a/lib-ui/curs_lib.c b/lib-ui/curs_lib.c index 45d7b03..c99a635 100644 --- a/lib-ui/curs_lib.c +++ b/lib-ui/curs_lib.c @@ -111,11 +111,9 @@ int _mutt_get_field ( const char *field, char *buf, ssize_t buflen, addstr (field); mutt_refresh (); getyx (stdscr, y, x); - ret = - _mutt_enter_string (buf, buflen, y, x, complete, multiple, files, - numfiles, es); - } - while (ret == 1); + ret = _mutt_enter_string(buf, buflen, y, x, complete, multiple, files, + numfiles, es); + } while (ret == 1); CLEARLINE (LINES - 1); mutt_free_enter_state (&es); diff --git a/lib-ui/menu.c b/lib-ui/menu.c index 79fe3ec..f509ae0 100644 --- a/lib-ui/menu.c +++ b/lib-ui/menu.c @@ -142,10 +142,7 @@ static void menu_pad_string (char *s, size_t n) int cols; char *tmpbuf = p_new(char, n); - if (option (OPTMBOXPANE)) - cols = COLS - shift - SidebarWidth; - else - cols = COLS - shift; + cols = COLS - SW - shift; mutt_format_string (tmpbuf, n, cols, cols, 0, ' ', s, m_strlen(s), 1); tmpbuf[n - 1] = 0; snprintf (s, n, "%s", tmpbuf); /* overkill */