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
Bart Schaefer
d6a7f6f5ad
Add two widges for user control of auto-suffix remove/keep.
2006-10-16 01:09:22 +00:00
Peter Stephenson
48d6402e65
rationalise mb<->wc conversions to use restartable form
2006-08-03 15:37:49 +00:00
Peter Stephenson
bb912594b2
22575: multibyte fixes for bslashquote(), getzlequery()
2006-08-01 21:28:04 +00:00
Wayne Davison
78ddb65f6c
Got rid of some superfluous STOUC() calls (such as the ones I added
...
for the arg of calls to nicechar(), which doesn't need this).
2006-01-13 17:13:49 +00:00
Wayne Davison
4867f99ef9
- When mbrtowc() returns -2 when given all the remaining chars in a
...
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).
2006-01-12 01:04:17 +00:00
Wayne Davison
00465c76fb
Changed the name of the "ret" variable in mb_niceformat() to "cnt"
...
because "ret" is usually used for a variable name to hold the
return value of the function. Also, changed the test when
checking for a \0 to only check if "cnt" is 0, since we must
always change a value of 0 to 1.
2006-01-09 17:58:57 +00:00
Wayne Davison
74b4973888
The return value of mbrtowc() is a size_t (unsigned), so don't
...
assign it to an int and then check if it's > 0, as that won't
work on a system where an int is larger than a size_t. Also,
we needed to use STOUC() on a char value passed to nicechar().
2006-01-09 00:29:57 +00:00
Wayne Davison
c70dabb500
Changed zlelineasstring() and zlegetline() to each return a normal char
...
pointer, not an unsigned char pointer. Changed stringaszleline() to
take a normal char pointer for its first arg. Got rid of some
unsigned-char/char pointer casts.
2005-11-15 08:44:32 +00:00
Wayne Davison
781711e733
- One minor change to handle the ZLE_STRING_T change.
...
- A few brace-position twiddles.
2005-11-01 03:26:57 +00:00