1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00
Commit graph

90 commits

Author SHA1 Message Date
Jun-ichi Takimoto
ca3bc0d95d 37838: use UNUSED() consistently 2016-01-30 00:26:23 +09:00
Peter Stephenson
f1312d1e22 37091: clear lastline and lastlinesz when freeing 2015-11-11 16:09:28 +00:00
Peter Stephenson
11ca38c6d9 users/20825: fix crash when complex completion hooks.
get_undo_current_change() needs protecting against execution in
completion environment.
2015-10-26 10:00:54 +00:00
Daniel Shahaf
8165b488cb unposted: zle: Document the C helper function processcmd().
Also, tweak the docstring of zlelineasstring().
2015-09-25 23:38:41 +00:00
Peter Stephenson
32f5d3d8c1 36416: ^C in getzlequery() just aborts query.
Also logical but possibly invisible fix for error propagated
back from listing interface.
2015-09-03 17:52:40 +01:00
Oliver Kiddle
832130c57d 36131: make use of undo limits; call mkundoent() when $UNDO_CHANGE_NO is referenced for a clear change number marking the current state 2015-08-13 16:18:26 +02:00
Oliver Kiddle
5911aca85f 35737: (tweaked c.f. Peter: 35759): use new undo limit for minibuffer and beep when limit is reached 2015-07-14 00:30:45 +02:00
Peter Stephenson
2833299312 35708: add UNDO_LIMIT_NO 2015-07-09 19:29:59 +01:00
Peter Stephenson
f1923bdfa6 Add non-metafied character length handling.
Use this in regex module and add test using $'\ua0'.

Rename mb_metacharinit() to mb_charinit() as it does not involve
metafied characters.
2015-06-12 09:30:39 +01:00
Mikael Magnusson
18b60d8512 34117: zle: size_t is unsigned, use int instead
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.
2015-01-06 23:46:06 +01:00
Peter Stephenson
04e555a92e 33981: more care with region_highlights management 2014-12-18 18:54:55 +00:00
Peter Stephenson
d067ebcacd 33876: etc.: Separate errors and keyboards interrupts
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-12-11 09:41:17 +00:00
Oliver Kiddle
0ea8f28e7b 33700: new widget for put in vim style visual selection mode 2014-11-17 16:32:04 +01:00
Oliver Kiddle
99382e689d 33669: allow an empty line to be yanked with yy
This  by allocating 1 byte instead of 0 for the empty buffer.
2014-11-13 09:58:34 +01:00
Oliver Kiddle
36b8f83319 33624: keep region active when widget fails 2014-11-07 11:29:13 +01:00
Oliver Kiddle
c7ff843ecf 33604: fix change merging for vi mode where a change has just been undone 2014-11-05 22:50:48 +01:00
Oliver Kiddle
4d89ec25f1 33575: reset vi change start position if text is inserted
before it or on history movement
2014-11-03 00:31:57 +01:00
Oliver Kiddle
bdedf7b40b 33518: add support for "_ vi buffer and arguments to vi-set-buffer from a zle widget 2014-10-23 21:47:23 +02:00
Oliver Kiddle
72c666fb4f 33514: even with a named vi buffer, we should update the default buffer 2014-10-23 17:14:19 +02:00
Oliver Kiddle
a39c3adece 33512: add support for "0 vi buffer and yank to it 2014-10-23 17:00:31 +02:00
Barton E. Schaefer
31e2ae380a 32540: in doexpandhist(), discard saved line position data rather than restoring from it (updates 32531). 2014-04-13 01:26:07 -07:00
Oliver Kiddle
2cd3b9ab74 32334 (modified so KEEPSUFFIX is unchanged for vi-cmd-mode; based on
Jun T: 32324, 32330), 32347, Jun T: 32344, 32349:
add split-undo zle widget for configurable breaks in undo sequence
2014-02-05 21:45:19 +01:00
Oliver Kiddle
a8c4ed64ee 32314: merge undo events corresponding to vi change in the vi-cmd-mode widget so undo from insert mode is useful again 2014-01-31 14:03:47 +01:00
Peter Stephenson
f77a7a5b18 31937: zle -Fw uses widget semantics for file descriptor handler 2013-11-07 15:19:07 +00:00
Peter Stephenson
cbe9371023 31922: zlecharasstring missed flip of bit 5 after Meta 2013-10-28 17:51:38 +00:00
Peter Stephenson
34ed3eaecd users/17318: only increment the undo variable return value for the
first request in a row
2012-10-09 16:27:11 +00:00
Peter Stephenson
0fda80344b users/17314: ensure an undo change number
uniquely specifies a point in editing history by incrementing
the value returned by the variable.
2012-10-09 14:57:13 +00:00
Peter Stephenson
13a45d74eb users/16932: implement $UNDO_CHANGE_NO and argument to undo widget 2012-03-29 20:31:33 +00:00
Peter Stephenson
a5ff5b61a4 Jérémie Roquet: 29258: mark a couple more functions for export. 2011-05-13 11:59:05 +00:00
Peter Stephenson
d89361739a 29165: use term.h globally if needed at all. 2011-05-09 09:49:08 +00:00
Peter Stephenson
cc69ecfb9e 28886: Fix region_highlight dynamic updates for $PREDISPLAY 2011-03-11 10:33:33 +00:00
Peter Stephenson
212ca9edf9 28772: Update regions in region highlight dynamically 2011-02-18 22:08:45 +00:00
Peter Stephenson
459953f029 28671: better cursor positioning after undo 2011-02-11 19:32:21 +00:00
Peter Stephenson
8856dc878e 28282: new function zlecallhook()
fix arguments to zle-keymap-select
2010-09-20 09:27:46 +00:00
Peter Stephenson
b16923b096 27812: display invalid bytes in multibyte characters specially 2010-03-22 19:46:53 +00:00
Peter Stephenson
851663282a Greg Klanderman: 26159: fix appending of kills 2009-01-03 18:12:15 +00:00
Peter Stephenson
85c513894d 26047: convert lower levels of completion matching to use
multibyte strings and wide characters
2008-11-15 21:27:45 +00:00
Peter Stephenson
cca52d8edb unposted: Jun T.: fix backkill() calculation of charaters to kill 2008-04-24 10:18:59 +00:00
Peter Stephenson
a58d02fd2e 24860: better overwrite mode 2008-04-21 17:58:58 +00:00
Peter Stephenson
500c402380 24855: tests for combining char alignment should only be on metafied line 2008-04-21 10:13:30 +00:00
Peter Stephenson
3cf29e7513 24853: bits missed from patch 2008-04-20 21:19:52 +00:00
Peter Stephenson
b8ec06c870 24853: use metafied strings for inner loops over history 2008-04-20 21:17:29 +00:00
Peter Stephenson
1875c12734 24819: fix transposing characters and sneaky combination generation 2008-04-15 16:49:55 +00:00
Peter Stephenson
97dcf15556 24808: initial support for combining characters in zle 2008-04-13 16:58:42 +00:00
Peter Stephenson
659bfee072 unposted: move zlefind() and zlecmp() into zle_hist.c 2008-04-11 11:38:06 +00:00
Peter Stephenson
2c5ea79f17 24782: initial go at highlighting of characters in zle command lines 2008-04-03 11:38:55 +00:00
Wayne Davison
9fb0f8dea2 Fixed two compiler warnings about comparing signed/unsigned. 2008-03-06 16:42:54 +00:00
Peter Stephenson
20607774dc 24275: fixes for multibyte characters on Solaris 2007-12-17 17:11:29 +00:00
Peter Stephenson
c6dfb2999d users/11419: zle copy-region-as-kill <string>
adds text to the kill ring
2007-04-19 14:16:22 +00:00
Peter Stephenson
006229c32e 22924: a couple more metafy_line()/unmetafy_line() problems 2006-10-30 14:13:36 +00:00