1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-25 05:31:19 +02:00
Commit graph

1135 commits

Author SHA1 Message Date
Oliver Kiddle
edb9c94025 33950: ignore KEYTIMEOUT for vi operators 2014-12-12 14:14:00 +01: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
88f4e24d4c 33924: allow vi line/characterwise mode to be forced 2014-12-08 17:24:48 +01:00
Oliver Kiddle
7a4a309973 33860: minor fixes to vi mode changes 2014-12-05 20:13:33 +01:00
Oliver Kiddle
b0a659e710 33845: save correct cursor position with push-line from vi command mode 2014-12-05 20:13:32 +01:00
Oliver Kiddle
d2505f108e 33823: overwrite mode shouldn't replace newlines 2014-11-30 23:37:01 +01:00
Oliver Kiddle
40c5e00de0 33800: remove old workaround for ancient systems to
consume typeahead before setting up the terminal
2014-11-30 23:29:25 +01:00
Oliver Kiddle
0d4b548d1e 33818: fix types passed to sizeof detected by coverity as being wrong 2014-11-30 23:19:55 +01:00
Marc Finet
2598010adf 33815: Fix word transposition bug.
With a one-character word the wrong two words could be transposed.
2014-11-28 09:40:24 +00:00
Oliver Kiddle
feda07c641 33770: avoid calling identical FIONREAD ioctl twice in succession 2014-11-25 22:14:50 +01:00
Oliver Kiddle
69594a6cf0 33738: account for a selection in vi-replace-chars 2014-11-21 11:40:01 +01:00
Oliver Kiddle
58da0f495c 33730: vim style text objects for selecting words 2014-11-21 11:40:00 +01:00
Oliver Kiddle
0a4223d908 unposted: reindent large block 2014-11-17 23:03:10 +01:00
Oliver Kiddle
d29e02c1a3 33704: keybindings, documentation, tests and minor
fixes for vim style visual selection changes
2014-11-17 23:01:00 +01:00
Oliver Kiddle
36878852ef 33636: add support for a linewise visual selection mode 2014-11-17 22:50:34 +01:00
Oliver Kiddle
492b6cec28 33635: adapt region to function as vim style visual selection mode 2014-11-17 22:47:59 +01: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
25cc978a99 33633: support vim style text objects 2014-11-17 00:49:32 +01:00
Oliver Kiddle
15fc2cd4f0 33632: use viopp and visual local keymaps if they exist 2014-11-17 00:49:31 +01:00
Oliver Kiddle
1e934556f7 33697: new vim style vi-backward-word-end widgets 2014-11-15 21:33:32 +01:00
Oliver Kiddle
13f3eec61d 33696: simple up/down line widgets that don't go through history lines 2014-11-15 21:31:29 +01:00
Oliver Kiddle
f26abf3a17 33695: fix various vi-indent problems and vi-swap-case on a blank line 2014-11-15 21:27:44 +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
f01188ec2a 33639: fix bug with vi operators on a blank line
and with backward bracket matching
2014-11-09 17:51:26 +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
4b66ec003f 33596: make local keymap keybinding hide global keymap
binding that is a prefix of the local binding
2014-11-04 14:08:20 +01:00
Oliver Kiddle
73ca153159 33593: support numeric argument to vi-join 2014-11-03 00:36:00 +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
fd302c9837 33570, 33576: make killring/yank-pop work in vi mode after
vi-put-before and vi-put-after
2014-10-30 21:52:36 +01:00
Barton E. Schaefer
9d2cfa7af6 Merge branch 'master' of git://git.code.sf.net/p/zsh/code
Conflicts:
	ChangeLog
2014-10-29 08:49:33 -07:00
Barton E. Schaefer
691547cda6 33563: Completion/Base/Core/_main_complete, Src/Zle/complist.c: fix thinko in status message for INT/QUIT signals; check errflag in output loops
Two semi-related patches for keyboard interrupt handling in completion,
most importantly so that unexpectedly long completion listings can be
interrupted.
2014-10-29 08:45:57 -07:00
Oliver Kiddle
16cfa78aa9 33528: take notice of last column position when using vi-yank
and an upward cursor movement
2014-10-29 13:34:37 +01:00
Peter Stephenson
11c3bc3d73 33480, slightly tweaked: fix for $' completion.
Improves case where completing after the $' but before any
closing quote, or if the closing quote is absent.
No other change --- we still don't attempt to exand the quotes if
we're inside them.
2014-10-24 09:54:55 +01:00
Oliver Kiddle
746b53d5d7 33520: correct cursor positioning following a vi mode yank operation 2014-10-24 00:18:32 +02:00
Oliver Kiddle
2fe4bfb100 33519: last character in the buffer can be cut, changed or yanked using vi-forward-char 2014-10-23 22:12:06 +02: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
9d54f0ecde 33513: vi mode deletions should replace cut buffer not append to it 2014-10-23 17:10:37 +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
b6921a2b44 33515: suppress parser error messages in comp_match() 2014-10-22 20:21:10 -07:00
Barton E. Schaefer
57252dc1e0 33320 (cf. PWS 33311): revert 33069, fix lexing of bangchar during completion
add typtab_flags bits (replaces specialcomma boolean) to record any unusual handling of typtab entries; signal safety; make bangchar non-special during completion lexing of the command line.
2014-10-02 08:39:43 -07:00
Peter Stephenson
15222bcdcb Fix some compiler warnings in Zle 2014-09-30 09:58:19 +01:00
Peter Stephenson
cc6e9db29d 33047: use git to simplify massively source distribution file selection 2014-08-23 21:01:58 +01:00
Miles Ohlrich
22ee3a4fd9 32958: bitwise logic fix 2014-08-04 14:35:10 -07:00
m0viefreak
f5fe52c495 32600: in _arguments, "-" is not an option letter after another "-" 2014-05-08 14:24:31 +01: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
Barton E. Schaefer
f61037a0b0 32531: fix memory leaks detected by valgrind 2014-04-06 09:55:49 -07:00
m0viefreak
cd2eb07a78 m0viefreak: users/18655,18657,18660: assorted auto-removable suffix fixes
Src/Zle/compresult.c, Src/Zle/zle_misc.c, Src/Zle/zle_refresh.c: fix
auto-removable suffix highlighting

Completion/Unix/Command/_git: fix compadd for auto-removable suffix in
_git_commit_ranges and _git_stash
2014-03-23 13:02:12 -07:00
Jun T
ba44ba6e6f 32480: Fix crash in vi mode with too few previous changes 2014-03-13 16:29:19 +00:00
Oliver Kiddle
f62bd9c06c 32450: make get-line widget set the history number that was saved with the line 2014-03-03 12:17:28 +01:00
Oliver Kiddle
97115e0e7f 32448: fix seg fault if $WIDGET is accessed after recursive-edit is interrupted 2014-03-03 12:14:01 +01:00
Oliver Kiddle
b5fcc04f0e 32436: allow = to be used in ZLS_COLORS patterns if it is quoted or inside parentheses 2014-03-03 11:57:56 +01:00
Barton E. Schaefer
7e04c1a53d 32427: avoid busy loop on closed descriptors for "zle -F" handlers
Also assure the handlers are called on error conditions and document the
extra argument that is passed in the error case.
2014-02-23 18:14:12 -08:00
Oliver Kiddle
90916c4e08 32361: don't reset lastline before completion 2014-02-14 22:51:33 +01:00
Barton E. Schaefer
ba58bfe4bf 32365: another stab at the heuristic for initializing rprompt_indent 2014-02-08 14:49:39 -08:00
Oliver Kiddle
e1bc9d0a44 32342: fix overstrike for vi mode and use varying vi commands at line start 2014-02-05 21:55:18 +01: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
Barton E. Schaefer
620b915c4e Fix leading whitespace in a comment 2014-02-02 13:37:36 -08:00
Barton E. Schaefer
3882c30f80 32340: improve error messages for "read -c" / "read -l" 2014-02-02 13:28:41 -08: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
584ea88811 32303: simplistic completion after $x: 2014-01-28 19:14:30 +00:00
Peter Stephenson
c56f5aed59 32308: Improve initialising of vi change.
Better handling when entering viins on entry to editor.
Slightly changed since post to use vi command a.
2014-01-28 16:12:41 +00:00
Barton E. Schaefer
1584318b97 32283: fix crash in menu selection when number of terminal lines is small 2014-01-18 12:32:21 -08:00
Carl Drougge
60372fbda6 32196: copy-prev-shell-word needs a lexer flag 2014-01-02 20:49:04 +00:00
Barton E. Schaefer
1136b9b296 32182: re-enable command completion after a separator 2013-12-25 16:24:27 -08:00
Barton E. Schaefer
9cacf4411f 32157: fix extra line feed after prompt, and erased character in completion listing, when ZLE_RPROMPT_INDENT=0 2013-12-18 23:45:20 -08:00
Patrick Oscity
977f9ff5c8 32114: ZLE_PROMPT_INDENT allows you to move rprompt flush right 2013-12-16 21:35:21 +00:00
Peter Stephenson
2fc2bb7c17 31961: rationalise fd watching to use structure 2013-11-12 20:41:06 +00: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
7a5b85292a 31882: Insulate completion widget against environment.
Prevents change in pipestatus leaking back out.
2013-10-24 17:49:37 +01:00
Barton E. Schaefer
75fdec17b1 31784: better line width calculation for completion listings
When deciding whether there is enough horizontal space to show completion
descriptions for each match in a listing, treat the separator as part of
the description rather than as part of the match, and account for lines
that have already wrapped due to very long matches.
2013-10-03 15:59:52 -07:00
Barton E. Schaefer
ea30fdaf25 31781: "compdescribe -i" clears the completion list column padding width 2013-10-03 14:52:54 -07:00
Peter Stephenson
0ed3c5ccd0 31765: If zle starts in viins mark as insertion.
This allows undo to work on everything entered.
2013-09-25 18:42:59 +01:00
Barton E. Schaefer
61deff76f2 31737: same loop counter fix in get_cadef as get_cvdef. 2013-09-19 07:55:53 -07:00
Axel Beckert
844e569b63 31735: fix off-by-one in completion utility cache code.
Was causing crashes in complex completions, particularly with taskwarrior
2013-09-19 09:45:45 +01:00
Peter Stephenson
8ae8fae400 31644: Fix insertion of multibyte characters into editor line.
This was broken for a string that came from outside ZLE in the case
where the editing buffer wasn't metafied, i.e. not in completion.
2013-08-08 20:10:06 +01:00
Peter Stephenson
0b185e3dcd users/17908: Keep history line in sync between ZLE and shell.
Update ZLE version if history is read, pushed or popped with ZLE active
2013-08-08 19:48:11 +01:00
Peter Stephenson
568e0db7a9 31611: attempt to fix crash completing redirection in do loop 2013-08-02 18:58:35 +01:00
Mikael Magnusson
d904e85904 31483: Call zrefresh() before unqueue()ing signals
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-06-27 13:02:23 +02:00
Bart Schaefer
d19e18c68d 31350: block SIGWINCH nearly all the time, except
when about to calculate prompts or do synchronous read, so
syscalls are not interrupted by window size changes.
2013-04-30 00:08:49 -07:00
Bart Schaefer
fa7c51971d 31272: Avoid double free, get_compctl should not free its arguments. 2013-04-20 08:40:18 -07:00
Frank Terbeck
daf4f19c3f 31172: Let vared define custom init and finish hooks
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-05 17:23:45 +02:00
Frank Terbeck
6654b87b45 31174: zle: Make sure state changes are refreshed after init hook
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.
2013-04-05 17:23:45 +02:00
Peter Stephenson
b6f704a642 Jun. T: typo in vi-goto-mark 2013-04-02 16:20:28 +00:00
Oliver Kiddle
d88a46b1a9 31037: return to previous position with vi-goto-mark using `` or '' 2013-02-09 21:27:47 +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
eb562c9f2c 30715: use enum lextok for variables containing lexical tokens 2012-10-05 21:35:05 +00:00
Peter Stephenson
9c49c8dd27 John Stahara: 30641: bindkey -N error report is misleading
when copying keymap.
2012-08-25 18:02:32 +00:00
Peter Stephenson
1c0ed3b498 Aaron Scrab: 30604: make repeating vi skip character useful by ignoring
character just matched
2012-08-13 08:47:13 +00:00
Peter Stephenson
3e39278c24 Aaron Schrab: 30603: repeating vi skip characters command caused bad position 2012-08-13 08:44:05 +00:00
Mikael Magnusson
8ac002dab1 unposted: fix trailing spaces from previous commit 2012-05-02 13:59:28 +00:00
Mikael Magnusson
f7ce5878b8 30425 (fixed): Add localhistory/globalhistory to $ZLE_STATE as set by the set-local-history zle widget 2012-05-02 13:30:33 +00:00
Peter Stephenson
13a45d74eb users/16932: implement $UNDO_CHANGE_NO and argument to undo widget 2012-03-29 20:31:33 +00:00
Bart Schaefer
3489c15799 30193: remnulargs() after poking into string in case length changes 2012-02-09 20:12:33 +00:00
Peter Stephenson
a84560cbf2 Holger Macht via Ismail: 30185: openSUSE directory missed from
module definition
2012-02-07 15:41:01 +00:00
Peter Stephenson
9b923cccea 30084: `zle -T tc func' for zle testing of termcap output 2012-01-05 20:01:24 +00:00
Bart Schaefer
bcd0fd1128 queue_signals() to prevent adjustwinsize() loop on FreeBSD 2012-01-02 19:31:16 +00:00
Bart Schaefer
81cb361d73 30033: silence valgrind warnings 2011-12-20 17:15:50 +00:00
Peter Stephenson
45faf8f5b2 29891: make zle -lL with arguments work 2011-11-04 14:14:26 +00:00
Peter Stephenson
31c422299d 29859: compadd handles its own options 2011-10-26 12:45:10 +00:00
Peter Stephenson
8dc39360c9 29820: _pick_variant -b to match builtin 2011-10-14 19:01:41 +00:00
Peter Stephenson
84f8330e0d users/16375: initialise nrefs on each loop in match tests 2011-09-18 17:44:12 +00:00
Mikael Magnusson
cd3acd762d 29681: use [] to dereference region_highlights 2011-08-17 10:15:49 +00:00
Peter Stephenson
a3ae9f5d12 29643: set incompfunc to zero when executing hook or trap function 2011-08-04 08:30:50 +00:00
Peter Stephenson
4a3ce8ab89 29644: work around _describe bug, plus cosmetic tweaks 2011-08-03 20:57:32 +00:00
Peter Stephenson
a05a51ce8a 29542: fix crash in hbegin(), remove bad test
29543: fix backslash-newline within words with histlexwords
2011-07-12 08:37:11 +00:00
Peter Stephenson
e1680e6840 29503: Missing popheap() on failed autoload 2011-06-23 19:29:24 +00:00
Peter Stephenson
437d5d98f6 unposted: Remove additional for loop noticed by Mikael 2011-06-19 19:42:41 +00:00
Peter Stephenson
962624e8c3 29491: remove some variables set but not used 2011-06-19 16:26:10 +00:00
Peter Stephenson
d7582f006f 29459: Further fixes for parameter flag completion,
plus drive-by fix for double-quoted parameter completion with flags
2011-06-04 21:32:06 +00:00
Peter Stephenson
d292edc4dc 29452: allow completion of parameter flags 2011-06-03 22:06:59 +00:00
Peter Stephenson
54acd80359 29374: exit ZLE immediately if exit pending when keypress expected 2011-05-26 09:19:11 +00:00
Mikael Magnusson
72cb7cfc6f 29307, 29308 + replies: Fix some doubled words in docs and comments. 2011-05-19 16:10:46 +00:00
Peter Stephenson
f61ae85acf 29268: extra dupstring() for value to be used in completion match group 2011-05-14 00:36:06 +00:00
Peter Stephenson
506615ff94 29267: add -enable-zsh-debug and use for debugging completion matcher groups 2011-05-14 00:07:41 +00:00
Peter Stephenson
9c0a19669b Danek: 29254: fix some compiler warnings 2011-05-13 18:12:05 +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
Mikael Magnusson
1ac8412d6f 29208: make vimatchbracket more useful in emacs mode 2011-05-12 15:55:12 +00:00
Peter Stephenson
d89361739a 29165: use term.h globally if needed at all. 2011-05-09 09:49:08 +00:00
Bart Schaefer
2938c58c82 29107: replace overlapping strcpy with memmove 2011-04-29 15:23:33 +00:00
Bart Schaefer
ecb32c6b12 Jun T.: 29031: increment global minfo state when inserting characters
on the line during interactive menu selection.
2011-04-24 19:10:20 +00:00
Wayne Davison
c06f5b4556 Fix compiler warning due to state.doff duplication. 2011-04-15 14:56:53 +00:00
Bart Schaefer
67847a96ee 28926: No newline after the last line in listlist() when printing the list
in a single column.
2011-03-28 04:50:20 +00:00
Peter Stephenson
e4059eedc7 Mikael: 28941: fix $CURSOR access when metafied 2011-03-27 17:55:41 +00:00
Peter Stephenson
cc69ecfb9e 28886: Fix region_highlight dynamic updates for $PREDISPLAY 2011-03-11 10:33:33 +00:00
Peter Stephenson
24e97ba046 28773: add zle-history-line-set widget 2011-02-18 22:34:29 +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
fe59d196a0 28611: remove unused special behaviour for vi mark 26 2011-01-11 20:12:18 +00:00
Peter Stephenson
a7bc22ca00 Paul 28538 / me 28540 / couple of unposted casts:
use char * for pointer arithmetic rather than void *
2010-12-20 10:28:43 +00:00
Peter Stephenson
655174ca42 uncommitted: fix properly 2010-12-17 23:05:31 +00:00
Peter Stephenson
a9421446d2 Mikael: users/15653: zle_highlight=(none) turns off suffix highlighting
unposted: note suffix highlighting in NEWS
2010-12-17 14:01:23 +00:00
Peter Stephenson
ebcead7543 lexsave/lexrestore lexflags
add new LEXFLAGS_ZLE
2010-12-14 10:35:38 +00:00
Peter Stephenson
eab4f9a83c 28528: Rearrange zleparse to lexflags
Add (z+n+)
2010-12-14 09:59:04 +00:00
Peter Stephenson
0a5702457b 28510: add (z+c+) and (z+C+) parameter flags 2010-12-12 22:44:50 +00:00
Peter Stephenson
3e97b749f4 28486: $compstate[parameter] needs untokenizing 2010-12-06 10:49:51 +00:00
Peter Stephenson
73d622e9c4 28363: fix insert bug refreshing zle with wide characteter 2010-10-25 14:59:18 +00:00
Peter Stephenson
467cd12e13 Mikael: 28356: don't increment old display line too far when refreshing 2010-10-17 17:59:27 +00:00
Peter Stephenson
22899d3788 28285: zle-isearch-update and zle-isearch-exit 2010-10-06 08:25:28 +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
7e5a7a9135 28237: new parameter ZLE_LINE_ABORTED
28241: don't list .safe with bindkey -lL
2010-09-08 12:32:32 +00:00
Peter Stephenson
ff955f61b4 28229: can list individual keymaps 2010-09-05 20:39:08 +00:00
Peter Stephenson
17dee17e4e 28227: improved documentation on keymaps
28226: improve bindkey -lL for aliased keymaps
2010-09-05 19:24:44 +00:00
Peter Stephenson
afc3a7c412 28202: unmetafy line for reversemenucomplete 2010-08-31 18:09:15 +00:00
Peter Stephenson
a15007fe64 28167: reset more variables on invalidating completion list 2010-08-15 18:40:04 +00:00
Peter Stephenson
8e5061d0c6 28160, 28164: fix redisplay problem after display reset 2010-08-13 08:52:06 +00:00
Peter Stephenson
80eee3a4a3 28122 (Frank) / 28139: add ZLE_STATE 2010-08-11 12:48:19 +00:00
Peter Stephenson
edcd71603d Daiki Ueno: 28112: fix character width assignment 2010-08-02 09:02:30 +00:00
Peter Stephenson
9a17762b0c users/15217: use top-level status when redrawing prompt 2010-07-31 19:36:53 +00:00
Peter Stephenson
a5a27ad5ec <hamer@hamer.org.ua>: 28104: fix completion crash due to NULL pointer.
Actually commit the code.
2010-07-29 11:08:28 +00:00
Peter Stephenson
278a892888 28102: use lstat() when checking ignore-parents 2010-07-26 14:00:46 +00:00
Peter Stephenson
443d873258 27926: fix completion suffix when inserting last word 2010-04-27 08:58:34 +00:00
Peter Stephenson
b16923b096 27812: display invalid bytes in multibyte characters specially 2010-03-22 19:46:53 +00:00
Peter Stephenson
08dec290d4 Fix ZLE access to pushed history line 2010-03-22 16:22:13 +00:00
Peter Stephenson
be2381eb52 27804: don't hang in isearch if invalid character found 2010-03-18 16:03:09 +00:00
Peter Stephenson
ec46ff026e users/14732: Test X:/ rather than X: in Cygwin 2010-01-22 20:42:09 +00:00
Wayne Davison
693fd5b56e Check the return value of all pipe(), read(), and write() calls.
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-12-16 18:39:06 +00:00
Peter Stephenson
7293565963 27479: prevent completions split across backslash-newline
from causing too much mayhem
2009-12-07 21:40:04 +00:00
Peter Stephenson
7bc089c6be Mikael: 27453: highlighting for removable completion suffixes
27466: document it
2009-12-05 19:38:07 +00:00
Peter Stephenson
c969dea22f 27441: add "sa" for suffix alias completion highlighting 2009-11-30 17:26:47 +00:00
Bart Schaefer
6c48ef6b45 27415: Src/Zle/computil.c: comparguments "*::..." descriptions could step
on sequentially earlier descriptions when completing for a word other than
the last word on the command line.
2009-11-21 06:51:14 +00:00
Peter Stephenson
c88fd11377 Holger Weiss: 57248: fix anchoring for vi searches 2009-09-06 21:37:14 +00:00
Peter Stephenson
c81ba09d8f 27218: don't unquote $line generated in comparguments for _arguments 2009-08-17 21:06:03 +00:00
Peter Stephenson
2237f7376e users/14307: end of command line in completion with variant zsh syntax 2009-08-15 16:59:21 +00:00
Peter Stephenson
207acdfe89 27211: handle Cygwin device files & drives specially in compfiles 2009-08-05 10:14:53 +00:00
Peter Stephenson
55e4beb8d8 27085: add accept-search handling to scrollist keymap 2009-07-01 17:09:37 +00:00
Peter Stephenson
88d07936a2 27080: it wasnt possible to exit menu selection cleanly 2009-07-01 13:41:18 +00:00
Peter Stephenson
c18b6c2c99 26956: tidy up some zle variables for module unloading
note issue found on HP-UX
2009-05-11 09:03:25 +00:00
Peter Stephenson
6195160598 26984: ensure zle window sizes are reset with video data 2009-05-08 08:37:31 +00:00
Peter Stephenson
e61af474c1 26876 with updated documentation: add ZLE_{REMOVE,SPACE}_SUFFIX_CHARS 2009-04-24 09:00:29 +00:00
Peter Stephenson
9b7d3a6e46 users/14041: bind : by default to execute-named-cmd in vicmd mode 2009-04-17 15:23:08 +00:00
Peter Stephenson
ea29159571 users/13902: make isearch return status useful
add LASTABORTEDSEARCH variable
2009-03-13 10:04:21 +00:00
Peter Stephenson
b7f4c91597 users/13903 fix vi search prompt and repeat 2009-03-13 09:58:14 +00:00
Peter Stephenson
84864d5780 26588: don't expand aliases in run-help 2009-02-20 21:49:56 +00:00
Peter Stephenson
4ae72f2255 Danek Duvall: 26571: Additions for Solaris 2009-02-14 18:11:44 +00:00
Peter Stephenson
e92801a2c0 26466: suffix in certain matcher modes mishandled pattern 2009-01-29 11:08:04 +00:00
Peter Stephenson
af39a5ab1a 26463: Greg Klanderman: add zle-line-finish widget
26464: Greg Klanderman: fix insert-ids=single for menu completion
26465: Greg Klanderman: command keymap for execution
2009-01-28 09:31:53 +00:00
Peter Stephenson
52bb631ccb 26373: initialise variable in menu completion in attempt to prevent crash 2009-01-20 10:42:08 +00:00
Peter Stephenson
46cdeb71b7 26366: add "isearch" keymap and "accept-search" functino 2009-01-19 17:57:43 +00:00
Peter Stephenson
7e5d340abe 26393: turn off text attributes in refresh when deleting text 2009-01-13 16:05:46 +00:00
Peter Stephenson
0cf040f4bf Back off 26270 (accept-and-menu-complete).
Was causing memory corruption
2009-01-13 12:19:53 +00:00
Andrey Borzenkov
1a43616975 26270: allow accept-and-menu-complete work with _vallues as well 2009-01-09 20:54:35 +00:00
Andrey Borzenkov
ead23b1898 26247: fix compilation with -Werror=format-security 2009-01-05 11:14:53 +00:00
Peter Stephenson
851663282a Greg Klanderman: 26159: fix appending of kills 2009-01-03 18:12:15 +00:00
Peter Stephenson
02f05d7462 26110: option to allow vared to open to an alternative terminal 2008-12-09 17:37:01 +00:00
Peter Stephenson
9503eaee5a 26116: didn't get updated properly for combining characters 2008-12-07 18:45:30 +00:00
Peter Stephenson
1e9b85e586 François Revol: some BeOS fixes 2008-11-18 10:14:35 +00:00
Peter Stephenson
14231691e1 26061: fix clash between process subst and numeric glob
26062: additional compmatch change, missed from 26047
2008-11-18 10:07:31 +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
Oliver Kiddle
dcd26714bb 26030: fix memory leak in vared 2008-11-12 12:59:07 +00:00
Oliver Kiddle
085419f95d 26024: don't leave ref count incremented when aborting bindkey with an error 2008-11-11 22:40:16 +00:00
Clint Adams
4b39a04c14 26027: free pprogc before it goes out of scope in makecomplistflags. 2008-11-11 19:36:34 +00:00
Peter Stephenson
a1958f3c41 26025: prefer handling user input to zle -F file descriptor 2008-11-11 18:25:44 +00:00
Peter Stephenson
d41c6098b4 25989: fix crash in matching 2008-11-02 17:36:26 +00:00
Peter Stephenson
7ce5beb5be 25975: bad tests for pattern match when building up a completion line string 2008-10-30 22:04:03 +00:00
Peter Stephenson
b9500900b1 25972: leaked and uninitialised memory found by valgrind 2008-10-30 20:29:55 +00:00
Clint Adams
787c86f68d 25949: remove dead code in getvisrchstr. 2008-10-30 01:47:32 +00:00
Clint Adams
031dd01cf2 25940: delay !multi memory allocation until after possibility to error out and return without freeing. 2008-10-29 01:33:23 +00:00
Peter Stephenson
b0e0d901b2 users/13375: trivial rewrite to ternary expression 2008-10-23 08:52:02 +00:00
Peter Stephenson
7f470ebcb0 25912: fix another metafication bug in completion
and remove lies about matchers
2008-10-18 19:16:24 +00:00
Clint Adams
4622e326bd 25897: remove small bit of dead code in cfp_opt_pats. 2008-10-14 22:09:11 +00:00
Clint Adams
430e54ddc4 25860: avoid possible NULL dereferencing in bld_parts. 2008-10-12 19:28:10 +00:00
Clint Adams
4de54f5d00 25859: avoid possible NULL dereferencing if RC_QUOTES is set. 2008-10-12 18:26:57 +00:00
Peter Stephenson
b2d08a2155 25744: dynamic named directories and further doshfunc() simplification 2008-09-26 09:11:27 +00:00
Clint Adams
7ff2b823a9 25737: remove dead code in ca_parse_line. 2008-09-23 20:57:40 +00:00
Clint Adams
4158a8aa38 25736: one more zsfree missing from 25667. 2008-09-23 19:33:13 +00:00
Peter Stephenson
9ae36771fe 25723: align combining character when popped from input stack 2008-09-22 18:37:49 +00:00
Peter Stephenson
1775a6ba81 25690: fix insert-last-word on multibyte characters with Meta 2008-09-18 20:35:37 +00:00
Peter Stephenson
2920c227d3 25677: add %x and %I prompt escapes for shell source code debugging
tidy up interface to doshfunc()
2008-09-16 15:02:01 +00:00
Clint Adams
06cc84ce84 25667: free mstr before returning from errors. 2008-09-14 09:00:26 +00:00
Clint Adams
430a7535fa 25666: free memory allocated for an xor if the argument number is invalid. 2008-09-14 07:34:46 +00:00
Clint Adams
96fc1bb149 25638: remove unnecessary ternary expression in match_str. 2008-09-10 18:33:32 +00:00
Clint Adams
b4ee5adc25 25636: free s before returning with an error condition. 2008-09-08 22:17:50 +00:00
Clint Adams
c715630baa 25634: free t before returning if both t and errflag are set. 2008-09-08 06:24:16 +00:00
Clint Adams
29680850a0 25612: remove dead code. 2008-09-05 00:18:11 +00:00
Bart Schaefer
16e75d6978 25389: rearrange precedence of ZLS_COLORS alternatives. 2008-08-06 02:21:01 +00:00
Peter Stephenson
0c9830d23c 25345, 25347: neaten interface from main shell to zle 2008-07-31 08:44:16 +00:00
Peter Stephenson
38e0badcc3 25236: don't recalculate prompt if not redisplaying 2008-07-22 19:54:29 +00:00
Peter Stephenson
0409391c7d 25272: add zshaddhistory hook 2008-07-17 11:27:55 +00:00
Peter Stephenson
11715a9cd8 25267: ambiguous pattern matching fix: missing log
25269: Frank Terbeck: typo
2008-07-07 08:33:27 +00:00
Peter Stephenson
cd56448c8e 25267: fix problem with menu on ambiguous completion without matching 2008-07-06 20:04:27 +00:00
Peter Stephenson
5527851061 25266: always use EXTENDED_GLOB for patterns in ZLS_COLORS 2008-07-05 19:55:29 +00:00
Peter Stephenson
26ca3a4ec6 Mikael: 25146: export pattern_match_equivalence() 2008-06-10 19:12:57 +00:00
Peter Stephenson
deab7d6642 unposted: silence compiler in pattern_match_restrict() 2008-06-09 08:41:26 +00:00
Peter Stephenson
bb68ee8db7 25138(? mailing list stuck): rewrite of completion matching.
Will one day use multibyte/wide characters, doesn't yet.
2008-06-08 17:53:53 +00:00
Peter Stephenson
9533b19dad 25051: add colour sequences to formatting strings in completion 2008-05-16 09:37:56 +00:00
Peter Stephenson
ea09bb1cef 25006, 25009: fix "or" orphaned symlink highlighting
fix ordering of statd versus extension and pattern highlight tests
2008-05-12 16:49:59 +00:00
Peter Stephenson
bd70d684fc 25002: only ZLE should update attributes resulting from prompt expansion 2008-05-12 13:50:42 +00:00
Peter Stephenson
4bed4f9d0f 24994: fix problem with up/down-line-or-search, perhaps 2008-05-11 18:37:34 +00:00
Peter Stephenson
c811a18d44 24986: prompt escapes for colours 2008-05-09 17:33:49 +00:00
Peter Stephenson
1663a63196 24959: crash with ^D in compctl 2008-05-07 08:53:39 +00:00
Peter Stephenson
0ef4ecefc7 24957: better sanity checking of colour ranges
always use termcap for numeric ranges where available
2008-05-06 21:33:10 +00:00
Peter Stephenson
74e5fcee38 24953: "default" zle_highlight; fix allocation bug in colour sequences 2008-05-06 18:19:14 +00:00
Peter Stephenson
dbe5fd93a7 24951: implement ZLS_COLORS ln=target 2008-05-06 16:01:18 +00:00
Peter Stephenson
88126c0110 24932: try to fix up code that regularizes attributes after right prompt 2008-05-06 09:23:06 +00:00
Wayne Davison
f7b2570e15 Locking simplification and signed/unsigned fixes. 2008-05-05 01:14:04 +00:00
Peter Stephenson
7d8eb45b18 Mikael Magnusson: 24911 (slightly tweaked):
REGION_ACTIVE zle parameter
2008-05-04 22:46:55 +00:00
Peter Stephenson
1424e923b1 24915: some more fix-ups for combining characters 2008-05-04 18:30:02 +00:00
Peter Stephenson
a8854f71eb 24900: add backward-kill-word behaviour to isearch
document isearch commands better
2008-05-01 11:33:02 +00:00
Peter Stephenson
fadf4a55ff 24899: make colour escape sequences configurable
allow ANSI colour names
2008-05-01 10:58:23 +00:00
Peter Stephenson
497a34d249 24894: enable colouring of highlighted text in editor 2008-04-29 17:19:26 +00:00
Peter Stephenson
f5ed24f47e 24893: duplicate statusline to avoid crashes when constant 2008-04-29 08:43:38 +00:00
Peter Stephenson
f8220437f2 unposted: reset search line on anchored pattern isearch 2008-04-28 15:45:41 +00:00
Peter Stephenson
7462e3f978 unposted: more tweaks for failed isearch pattern matches 2008-04-28 11:35:54 +00:00
Peter Stephenson
be947a5606 24890: Matt Wozniski: reset skip_pos on backtracking in isearch 2008-04-28 10:56:42 +00:00
Peter Stephenson
bbcee91527 24886: fix endless loop in string isearch 2008-04-27 20:01:49 +00:00
Peter Stephenson
91a10708b2 24822: highlighting of isearch matches
unposted: not in NEWS that COMBINING_CHARS is not on by default
2008-04-26 22:52:50 +00:00