summaryrefslogtreecommitdiffstats
path: root/menu.c
AgeCommit message (Collapse)Author
2016-05-09Change M_* symbols to MUTT_*Derek Martin
Changeset 23334e967dd7 created a workaround for a namespace conflict with Solaris and derivatives. After some discussion, the team decided it would be best to move away from using the "M_" prefix for macros. This patch was automatically generated by running: perl -wpi -e 's/\bM_(\w+)\b/MUTT_$1/g' `find . -name '*.[ch]' -print` with the exception that sys_socket.h was exempted. (That file will be backed out subsequent to this commit.) Thanks to Andras Salamon for supplying the perl script used to make this change.
2016-04-27Modify the menu code to use windows.Kevin McCarthy
Change menu.c to use the mutt_window_t structures and functions. The index/stats/help/message window pointers are stored inside the menu_t. This is useful for the pager, where the "index" we want to use is a mini-index.
2015-10-04Create a separate macro/push/exec event buffer. (closes #3779)Kevin McCarthy
Currently, the SSL and TLS certficate prompts turn on OPTUNBUFFEREDINPUT, (to prevent macros and such from running right through the dialog). Unfortunately, the menu dialog processing in menu_dialog_dokey() is using mutt_ungetch() to forward non-dialog keys on to standard menu processing. With OPTUNBUFFEREDINPUT set, those keys never make it to the menu and are buffered until after the menu dialog. This patch creates a new event buffer, separate from the standard "unget" buffer, for use by macros, exec, and push events. These events can be temporarily ignored by setting OPTIGNOREMACROEVENTS (renamed from OPTUNBUFFEREDINPUT), while continuing to allow unget events to be processed. Since the "push" and "unget" functions now go to different buffers, function names were slightly renamed, to make it less easy to unintentionally use the wrong function at the wrong time.
2015-10-04Fix menu type in certificate prompt. (see #3779)Kevin McCarthy
The menu type is used in several places as a direct index into Keymaps[], so passing in -1 to mutt_new_menu() was leading to illegal memory accesses later on. Add a range check in mutt_new_menu(), defaulting to MENU_GENERIC, to prevent this problem in the future.
2012-12-30make the SETCOLOR() macro use bkgdset() on systems which have it, and ↵Michael Elkins
attrset() when we don't. closes #3005
2012-12-20remove redundant #include statementsMichael Elkins
2012-12-20remove extern decl for Charset_is_utf8 since menu.c includes mbyte.h which ↵Michael Elkins
has the same decl.
2012-12-19use WACS_* macros for printing wide versions of the line drawing characters ↵Michael Elkins
when linking against ncursesw. This patch is based on http://prefix.gentooexperimental.org:8000/mutt-patches/file/fea851a2808f/solaris-ncurses-chars.patch
2010-08-24Do not call regfree if regcomp fails.Emanuele Giaquinta
The content of the regex_t structure is undefined in this case.
2009-06-01Use strtol() wrappers for most atoi() callsRocco Rutte
2009-05-29Fall back to search if no query exists for search-(next|opposite)Rocco Rutte
The pager had the fall-through to search, so for consistency do that in other menues as well.
2009-01-04Update copyrights. Closes #3016.Brendan Cully
I went through the logs of each file with a copyright header and updated the years for the authors in the headers for any non-comment changes they introduced. What a pain!
2008-11-30Manage last search pattern outside of menu lifecycleRocco Rutte
Previously, the pattern was thrown away during menu destruction. For the next search, mutt then can't provide a good suggestion. The new behaviour is to manage the pattern outside the lifecyle to always provide the last pattern as suggestion.
2008-10-28Make some functions static.Emanuele Giaquinta
2008-08-30Rework timeout handling to support keepalive in the line editor.Brendan Cully
Also allow keepalives of less than $timeout without returning before $timeout, so people who don't want to be notified of new mail don't have to be.
2008-08-29Make curses timeout the minimum of $timeout and $imap_keepalive.Rado Smiljanic
Do keepalive in km_dokey instead of directly in menu. Closes #2747.
2008-05-29Respect $wrap_search in generic menu search (e.g. for browser)Rocco Rutte
2007-09-19Enlarge buffers for printing menu entries from STRING to LONG_STRING.Rocco Rutte
Now that multibyte padding works, we may too soon run into too short buffers for common terminal widths in graphical terminals.
2007-07-08This patch implements the "%* " notation, which is analogous to "%> "David Champion
but gives precedence to the right side instead of to the left when the fill length is zero. The default $pager_format is updated to use it so that %P is always available at the edge of the screen.
2007-01-08Fix NULL pointer issue in mutt_format_string().Rocco Rutte
2006-12-11Quiet check_sec.sh.Brendan Cully
2006-12-07- my_mbtowcs didn't recover from bad multibyte sequencesThomas Roessler
- mutt_format_string was called under the assumption that this function can operate in-place. Unfortunately, that assumption only holds if replacement_char() returns a one-byte character.
2006-05-18Avoid safe_free() usage and add security checksRocco Rutte
Add checks to check_sec.sh for memory functions. These include a check for use of safe_free() instead of FREE() and a check whether FREE(&...) is used. For the former, __SAFE_FREE_CHECKED__ is to be used, for the latter __FREE_CHECKED__ to avoid messages from check_sec.sh
2005-11-17a not entirely sane state of code.Thomas Roessler
2005-11-17Another stab at #2019.Thomas Roessler
2005-11-01This should be a better patch for the menu break dance.Thomas Roessler
2005-10-31Fixing #2019.Thomas Roessler
2005-09-17Gah, forgot the zip code when updating the FSF address...Brendan Cully
2005-09-17Update FSF address (via sed, I hope nothing got mangled). Closes: #2071.Brendan Cully
2005-09-10Correct some inconsistencies introduced by $menu_context. Closes: #2019?TAKAHASHI Tamotsu
2005-06-12Fix background colors for $arrow_cursor.TAKAHASHI Tamotsu
2005-06-12Add $braille_friendly. Behavior originally suggested by SébastienThomas Roessler
Hinderer <Sebastien.Hinderer@libertysurf.fr>.
2005-02-28I've updated the menu_context patch to reintroduce the menu_move_offChristoph Berg
variable that hasn't made it into 1.5.8. The patch fixes menu_prev_line and menu_next_line which didn't work with menu_context > 0 and also makes <current-middle> work even if there are less messages than screen lines (thanks to René Clerc and Vincent Lefevre for spotting these issues).
2005-02-12Christoph Berg's menu_context, and a version of menu_move_off whereThomas Roessler
that's not optional, but where mutt will just try to avoid moving off the bottom. Complain to mutt-dev if you want this to be optional.
2005-02-03Add config.h to the top of every C file that could possibly want it.Brendan Cully
Remove it from mutt.h
2004-08-11Fix a memory leak in mutt_menuDestroy.Thomas Glanzmann
2004-02-05Back out the patch for #1697.Thomas Roessler
2004-01-04Fix #1697 (Debian #219594.)Cameron Patrick
2003-10-04This patch fixes various aspects of the attachment-savingThomas Roessler
user interface. Changes include: * When tagging and saving multiple attachments, you can now use the same target directory for multiple attachments. * When you can't save an attachment, you get an opportunity to enter a new file name. * The menu cursor will highlight the attachment that you are currently discussing with mutt. * Various bug fixes. This does, in particular, address #1619 (Debian#208430).
2003-10-04Fix #1656.Thomas Roessler
2003-07-04Introduce tag-prefix-cond and end-cond. This makes simpleNicolas Rachinsky
conditional execution of parts of macros possible.
2002-12-11Fix Mike's and my e-mail addresses in copyright lines.Thomas Roessler
2002-12-10Replace safe_free calls by the FREE macro.Thomas Roessler
2002-12-09This patch adds two features to mutt:Michael Elkins
- you can now specify the octal code of a key in a bind or macro function, using the syntax <NNN>. Eg, bind index <541> show-version This allows you to bind to a function key for which Mutt doesn't have a friendly name associated with it. - adds a what-key function which allows you to press a key and have mutt show you the decimal/octal value. (not bound to anything by default)
2002-11-11Fix #1310; redraw problems.Michael Elkins
2002-02-13Fix mutt_pad_string; from Edmund Grimley Evans. (MAY NEED TO BEThomas Roessler
BACKPORTED.)
2002-01-28Add ~V to match successfully verified messages.Thomas Roessler
2002-01-28Wide character fix from TAKIZAWA Takashi.Thomas Roessler
2001-12-13Threading updates, from Daniel Eisenbud.Thomas Roessler
2001-11-06[patch.1.3.23.1.de.new_threads.2] Daniel Eisenbud's redoneThomas Roessler
threading code, version two.