summaryrefslogtreecommitdiff
path: root/Src/Zle/zle_utils.c
AgeCommit message (Collapse)AuthorFilesLines
2015-08-1336131: make use of undo limits; call mkundoent() when $UNDO_CHANGE_NO is ↵Oliver Kiddle1-24/+9
referenced for a clear change number marking the current state
2015-07-1435737: (tweaked c.f. Peter: 35759): use new undo limit for minibuffer and ↵Oliver Kiddle1-1/+1
beep when limit is reached
2015-07-0935708: add UNDO_LIMIT_NOPeter Stephenson1-2/+22
2015-06-12Add non-metafied character length handling.Peter Stephenson1-1/+1
Use this in regex module and add test using $'\ua0'. Rename mb_metacharinit() to mb_charinit() as it does not involve metafied characters.
2015-01-0634117: zle: size_t is unsigned, use int insteadMikael Magnusson1-1/+1
The function wctomb returns an int according to my manpage, and we furthermore check if it is negative, and then return it, and the function signature is int, so declaring it as an int seems to make more sense.
2014-12-1833981: more care with region_highlights managementPeter Stephenson1-27/+34
2014-12-1133876: etc.: Separate errors and keyboards interruptsPeter Stephenson1-1/+2
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-1733700: new widget for put in vim style visual selection modeOliver Kiddle1-1/+1
2014-11-1333669: allow an empty line to be yanked with yyOliver Kiddle1-2/+3
This by allocating 1 byte instead of 0 for the empty buffer.
2014-11-0733624: keep region active when widget failsOliver Kiddle1-1/+0
2014-11-0533604: fix change merging for vi mode where a change has just been undoneOliver Kiddle1-3/+3
2014-11-0333575: reset vi change start position if text is insertedOliver Kiddle1-0/+3
before it or on history movement
2014-10-2333518: add support for "_ vi buffer and arguments to vi-set-buffer from a ↵Oliver Kiddle1-1/+1
zle widget
2014-10-2333514: even with a named vi buffer, we should update the default bufferOliver Kiddle1-1/+0
2014-10-2333512: add support for "0 vi buffer and yank to itOliver Kiddle1-7/+14
2014-04-1332540: in doexpandhist(), discard saved line position data rather than ↵Barton E. Schaefer1-0/+21
restoring from it (updates 32531).
2014-02-0532334 (modified so KEEPSUFFIX is unchanged for vi-cmd-mode; based onOliver Kiddle1-0/+26
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-1/+4
widget so undo from insert mode is useful again
2013-11-0731937: zle -Fw uses widget semantics for file descriptor handlerPeter Stephenson1-4/+3
2013-10-2831922: zlecharasstring missed flip of bit 5 after MetaPeter Stephenson1-0/+1
2012-10-09users/17318: only increment the undo variable return value for thePeter Stephenson1-0/+11
first request in a row
2012-10-09users/17314: ensure an undo change numberPeter Stephenson1-10/+17
uniquely specifies a point in editing history by incrementing the value returned by the variable.
2012-03-29users/16932: implement $UNDO_CHANGE_NO and argument to undo widgetPeter Stephenson1-2/+28
2011-05-13Jérémie Roquet: 29258: mark a couple more functions for export.Peter Stephenson1-2/+2
2011-05-0929165: use term.h globally if needed at all.Peter Stephenson1-3/+3
2011-03-1128886: Fix region_highlight dynamic updates for $PREDISPLAYPeter Stephenson1-33/+70
2011-02-1828772: Update regions in region highlight dynamicallyPeter Stephenson1-4/+333
2011-02-1128671: better cursor positioning after undoPeter Stephenson1-1/+3
2010-09-2028282: new function zlecallhook()Peter Stephenson1-0/+32
fix arguments to zle-keymap-select
2010-03-2227812: display invalid bytes in multibyte characters speciallyPeter Stephenson1-12/+35
2009-01-03Greg Klanderman: 26159: fix appending of killsPeter Stephenson1-1/+1
2008-11-1526047: convert lower levels of completion matching to usePeter Stephenson1-3/+4
multibyte strings and wide characters
2008-04-24unposted: Jun T.: fix backkill() calculation of charaters to killPeter Stephenson1-8/+6
2008-04-2124860: better overwrite modePeter Stephenson1-1/+1
2008-04-2124855: tests for combining char alignment should only be on metafied linePeter Stephenson1-3/+8
2008-04-2024853: bits missed from patchPeter Stephenson1-1/+4
2008-04-2024853: use metafied strings for inner loops over historyPeter Stephenson1-2/+49
2008-04-1524819: fix transposing characters and sneaky combination generationPeter Stephenson1-1/+6
2008-04-1324808: initial support for combining characters in zlePeter Stephenson1-38/+91
2008-04-11unposted: move zlefind() and zlecmp() into zle_hist.cPeter Stephenson1-76/+0
2008-04-0324782: initial go at highlighting of characters in zle command linesPeter Stephenson1-2/+9
2008-03-06Fixed two compiler warnings about comparing signed/unsigned.Wayne Davison1-2/+2
2007-12-1724275: fixes for multibyte characters on SolarisPeter Stephenson1-0/+16
2007-04-19users/11419: zle copy-region-as-kill <string>Peter Stephenson1-6/+31
adds text to the kill ring
2006-10-3022924: a couple more metafy_line()/unmetafy_line() problemsPeter Stephenson1-18/+18
2006-10-16Add two widges for user control of auto-suffix remove/keep.Bart Schaefer1-0/+9
2006-08-03rationalise mb<->wc conversions to use restartable formPeter Stephenson1-1/+5
2006-08-0122575: multibyte fixes for bslashquote(), getzlequery()Peter Stephenson1-27/+19
2006-01-13Got rid of some superfluous STOUC() calls (such as the ones I addedWayne Davison1-1/+1
for the arg of calls to nicechar(), which doesn't need this).
2006-01-12- When mbrtowc() returns -2 when given all the remaining chars in aWayne Davison1-21/+30
string, set an end-of-line flag and avoid calling mbrtowc() again for any of the incomplete characters that remain in the string. - Use "mbs" for the multi-byte state variable name (for consistency). - Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t -1 and -2 values (respectively).