Changeset 51:68b85f34a18c
- Timestamp:
- 1998-08-27 12:37:10 (10 years ago)
- Author:
- Thomas Roessler <roessler@…>
- Branch:
- HEAD
- Message:
-
[patch-0.94.4i.gt.arrowcursor.1] Padding to the end of
line/right jusitifying does not work in menus when
$arrow_cursor is set, because the extra space needed for
the arrow is not taken into account.
(From Gero Treuner <gero@…>)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r31
|
r51
|
|
| 81 | 81 | void alias_entry (char *s, size_t slen, MUTTMENU *m, int num) |
| 82 | 82 | { |
| 83 | | mutt_FormatString (s, slen, NONULL (AliasFmt), alias_format_str, (unsigned long) ((ALIAS **) m->data)[num], 0); |
| | 83 | mutt_FormatString (s, slen, NONULL (AliasFmt), alias_format_str, (unsigned long) ((ALIAS **) m->data)[num], M_FORMAT_ARROWCURSOR); |
| 84 | 84 | } |
| 85 | 85 | |
-
|
r31
|
r51
|
|
| 296 | 296 | folder.f = s; |
| 297 | 297 | folder.new = new; |
| 298 | | mutt_FormatString (buffer, sizeof (buffer), NONULL(FolderFormat), folder_format_str, |
| 299 | | (unsigned long) &folder, 0); |
| | 298 | mutt_FormatString (buffer, sizeof (buffer), NONULL(FolderFormat), |
| | 299 | folder_format_str, (unsigned long) &folder, |
| | 300 | M_FORMAT_ARROWCURSOR); |
| 300 | 301 | |
| 301 | 302 | if (state->entrylen == state->entrymax) |
-
|
r31
|
r51
|
|
| 75 | 75 | void index_make_entry (char *s, size_t l, MUTTMENU *menu, int num) |
| 76 | 76 | { |
| 77 | | format_flag flag = M_FORMAT_MAKEPRINT; |
| | 77 | format_flag flag = M_FORMAT_MAKEPRINT | M_FORMAT_ARROWCURSOR; |
| 78 | 78 | int reverse = Sort & SORT_REVERSE, edgemsgno; |
| 79 | 79 | HEADER *tmp, *h = Context->hdrs[Context->v2r[num]]; |
-
|
r41
|
r51
|
|
| 886 | 886 | char prefix[SHORT_STRING], buf[LONG_STRING], *cp, *wptr = dest, ch; |
| 887 | 887 | char ifstring[SHORT_STRING], elsestring[SHORT_STRING]; |
| 888 | | size_t wlen = 0, count, len; |
| | 888 | size_t wlen, count, len; |
| 889 | 889 | |
| 890 | 890 | destlen--; /* save room for the terminal \0 */ |
| | 891 | wlen = (flags & M_FORMAT_ARROWCURSOR && option (OPTARROWCURSOR)) ? 3 : 0; |
| | 892 | |
| 891 | 893 | while (*src && wlen < destlen) |
| 892 | 894 | { |
-
|
r31
|
r51
|
|
| 100 | 100 | M_FORMAT_MAKEPRINT = (1<<2), /* make sure that all chars are printable */ |
| 101 | 101 | M_FORMAT_OPTIONAL = (1<<3), |
| 102 | | M_FORMAT_STAT_FILE = (1<<4) /* used by mutt_attach_fmt */ |
| | 102 | M_FORMAT_STAT_FILE = (1<<4), /* used by mutt_attach_fmt */ |
| | 103 | M_FORMAT_ARROWCURSOR = (1<<5) /* reserve space for arrow_cursor */ |
| 103 | 104 | } format_flag; |
| 104 | 105 | |
-
|
r31
|
r51
|
|
| 95 | 95 | CONTEXT *ctx = (CONTEXT *) menu->data; |
| 96 | 96 | |
| 97 | | mutt_make_string (s, slen, NONULL (HdrFmt), ctx, ctx->hdrs[entry]); |
| | 97 | _mutt_make_string (s, slen, NONULL (HdrFmt), ctx, ctx->hdrs[entry], |
| | 98 | M_FORMAT_ARROWCURSOR); |
| 98 | 99 | } |
| 99 | 100 | |
-
|
r31
|
r51
|
|
| 171 | 171 | char s[SHORT_STRING]; |
| 172 | 172 | _mutt_make_string (s, sizeof (s), MsgFmt, NULL, aptr->content->hdr, |
| 173 | | M_FORMAT_FORCESUBJ | M_FORMAT_MAKEPRINT); |
| | 173 | M_FORMAT_FORCESUBJ | M_FORMAT_MAKEPRINT | M_FORMAT_ARROWCURSOR); |
| 174 | 174 | if (*s) |
| 175 | 175 | { |
| … |
… |
|
| 244 | 244 | void attach_entry (char *b, size_t blen, MUTTMENU *menu, int num) |
| 245 | 245 | { |
| 246 | | mutt_FormatString (b, blen, NONULL (AttachFormat), mutt_attach_fmt, (unsigned long) (((ATTACHPTR **)menu->data)[num]), 0); |
| | 246 | mutt_FormatString (b, blen, NONULL (AttachFormat), mutt_attach_fmt, (unsigned long) (((ATTACHPTR **)menu->data)[num]), M_FORMAT_ARROWCURSOR); |
| 247 | 247 | } |
| 248 | 248 | |