summaryrefslogtreecommitdiff
path: root/Src/Zle/zle_main.c
AgeCommit message (Collapse)AuthorFilesLines
2015-07-2335814: POSTEDIT needs to be unmetafiedOliver Kiddle1-1/+1
2015-07-0335674: make an undo event for initial buffer contentsOliver Kiddle1-0/+1
2015-06-2935637: remove the now unused module hook for reverse-menu-completeOliver Kiddle1-2/+0
2015-06-1935474, 35492: support the bracketed paste mode of newer terminal emulatorsOliver Kiddle1-1/+14
2015-03-0634653: move aborted vared lines to ZLE_VARED_ABORTEDPeter Stephenson1-1/+3
2014-12-1133876: etc.: Separate errors and keyboards interruptsPeter Stephenson1-5/+9
Combination of 12 commits from interrupt_abort branch. Basic strategy is to introduce bits to errflag and to set and reset them separately. Remove interrupt status on return to main keymap. Turn off ERRFLAG_INT for always block. Restore bit thereafter: we probably need a new variable in order to allow user interrupts to be reset in the always block. Add TRY_BLOCK_INTERRUPT This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too. Ensure propagation of SIGINT from exited job. If received by foreground job, shell uses ERRFLAG_INT, not ERRFLAG_ERROR, to set the new state. Reset errflag before precmd() Add always block in _main_completion to fix ZLS_COLORS Ensures we get the right state of $ZLS_COLORS at the end of _main_complete even if there's an interrupt. However, the "right state" is a bit messy as it depends on styles.
2014-11-3033800: remove old workaround for ancient systems toOliver Kiddle1-41/+2
consume typeahead before setting up the terminal
2014-11-2533770: avoid calling identical FIONREAD ioctl twice in successionOliver Kiddle1-9/+5
2014-11-1733632: use viopp and visual local keymaps if they existOliver Kiddle1-1/+4
2014-10-2333512: add support for "0 vi buffer and yank to itOliver Kiddle1-1/+1
2014-02-2332427: avoid busy loop on closed descriptors for "zle -F" handlersBarton E. Schaefer1-3/+36
Also assure the handlers are called on error conditions and document the extra argument that is passed in the error case.
2014-02-0532342: fix overstrike for vi mode and use varying vi commands at line startOliver Kiddle1-8/+8
2014-02-0532334 (modified so KEEPSUFFIX is unchanged for vi-cmd-mode; based onOliver Kiddle1-1/+1
Jun T: 32324, 32330), 32347, Jun T: 32344, 32349: add split-undo zle widget for configurable breaks in undo sequence
2014-01-3132314: merge undo events corresponding to vi change in the vi-cmd-mode ↵Oliver Kiddle1-6/+5
widget so undo from insert mode is useful again
2014-01-2832308: Improve initialising of vi change.Peter Stephenson1-1/+1
Better handling when entering viins on entry to editor. Slightly changed since post to use vi command a.
2013-11-1231961: rationalise fd watching to use structurePeter Stephenson1-20/+20
2013-11-0731937: zle -Fw uses widget semantics for file descriptor handlerPeter Stephenson1-14/+24
2013-09-2531765: If zle starts in viins mark as insertion.Peter Stephenson1-0/+7
This allows undo to work on everything entered.
2013-08-08users/17908: Keep history line in sync between ZLE and shell.Peter Stephenson1-0/+7
Update ZLE version if history is read, pushed or popped with ZLE active
2013-06-2731483: Call zrefresh() before unqueue()ing signalsMikael Magnusson1-0/+2
Not doing so causes problems for example with this .zshrc zle -N zle-line-init foo zle -N set-local-history bar foo() { zle set-local-history -n 1 } bar() { zle reset-prompt }
2013-04-3031350: block SIGWINCH nearly all the time, exceptBart Schaefer1-0/+10
when about to calculate prompts or do synchronous read, so syscalls are not interrupted by window size changes.
2013-04-0531172: Let vared define custom init and finish hooksFrank Terbeck1-7/+14
Using this, you can do things like this in a more straight-forward manner: foo-init() { CURSOR=0; } zle -N foo-init foo=$'Some longer\nbuffer with\nmultiple lines.' vared -i foo-init foo
2013-04-0531174: zle: Make sure state changes are refreshed after init hookFrank Terbeck1-2/+2
If `zrefresh' is not called _after_ the zle-line-init hook, any changes made to the editor's state (be it changes to $CURSOR or $BUFFER or called widgets like `clear-screen') will only be picked up after the first character is typed into the editor.
2012-01-0530084: `zle -T tc func' for zle testing of termcap outputPeter Stephenson1-1/+1
2012-01-02queue_signals() to prevent adjustwinsize() loop on FreeBSDBart Schaefer1-0/+14
2011-08-0429643: set incompfunc to zero when executing hook or trap functionPeter Stephenson1-5/+0
2011-07-1229542: fix crash in hbegin(), remove bad testPeter Stephenson1-1/+1
29543: fix backslash-newline within words with histlexwords
2011-05-2629374: exit ZLE immediately if exit pending when keypress expectedPeter Stephenson1-2/+2
2010-12-20Paul 28538 / me 28540 / couple of unposted casts:Peter Stephenson1-1/+1
use char * for pointer arithmetic rather than void *
2010-09-2028282: new function zlecallhook()Peter Stephenson1-21/+3
fix arguments to zle-keymap-select
2010-09-0828237: new parameter ZLE_LINE_ABORTEDPeter Stephenson1-0/+3
28241: don't list .safe with bindkey -lL
2010-07-31users/15217: use top-level status when redrawing promptPeter Stephenson1-0/+23
2009-12-16Check the return value of all pipe(), read(), and write() calls.Wayne Davison1-1/+1
Gets rid of all the remaining "ignoring return value" compiler warnings, and makes some read/write operations safer by ensuring that an EINTR is handled.
2009-01-2826463: Greg Klanderman: add zle-line-finish widgetPeter Stephenson1-0/+13
26464: Greg Klanderman: fix insert-ids=single for menu completion 26465: Greg Klanderman: command keymap for execution
2008-12-0926110: option to allow vared to open to an alternative terminalPeter Stephenson1-5/+14
2008-11-1226030: fix memory leak in varedOliver Kiddle1-0/+1
2008-11-1126025: prefer handling user input to zle -F file descriptorPeter Stephenson1-8/+15
2008-09-2625744: dynamic named directories and further doshfunc() simplificationPeter Stephenson1-1/+1
2008-09-2225723: align combining character when popped from input stackPeter Stephenson1-0/+1
2008-09-1625677: add %x and %I prompt escapes for shell source code debuggingPeter Stephenson1-3/+2
tidy up interface to doshfunc()
2008-09-0825634: free t before returning if both t and errflag are set.Clint Adams1-0/+2
2008-07-3125345, 25347: neaten interface from main shell to zlePeter Stephenson1-18/+70
2008-07-1725272: add zshaddhistory hookPeter Stephenson1-1/+1
2008-05-1225002: only ZLE should update attributes resulting from prompt expansionPeter Stephenson1-9/+10
2008-05-0124899: make colour escape sequences configurablePeter Stephenson1-0/+1
allow ANSI colour names
2008-04-2024853: use metafied strings for inner loops over historyPeter Stephenson1-7/+10
2008-04-2024852: more combining chars falloutPeter Stephenson1-1/+1
2008-04-1624821: update notes in FAQ on combining characters,Peter Stephenson1-0/+6
fix up cursor on exit from user-defined widget
2008-04-03typoPeter Stephenson1-2/+4
2008-04-0324786: handle read -t properly in zle via getbyte()Peter Stephenson1-7/+20