Barton E. Schaefer
3ba5e6b909
Merge branch 'master' into schaefer/badarrays
2017-06-01 14:47:45 -07:00
Peter Stephenson
a6135f6114
41191: Check for immortal thingies when checking for specific thingies
2017-06-01 17:56:14 +01:00
Barton E. Schaefer
bcdfcb2765
Merge branch 'mikachu/badarrays' into schaefer/badarrays
2017-05-28 12:29:29 -07:00
Jun-ichi Takimoto
171e7fa4c1
41090: Replace iswprint() if unicode9 is enabled.
...
If wcwidth() or iswprint() is broken, force enable unicode9.
2017-05-12 12:10:13 +09:00
Barton E. Schaefer
071017965f
40763: count wide characters and Cmatcher pointers more sanely in cfp_matcher_pats(), and count characters in pattern_match() the same way to stay in sync
...
Might not fix wide-char matching in completion matcher-lists but should
avoid wild pointer crash
2017-03-08 21:26:55 -08:00
Peter Stephenson
67c5d83df3
40702: new KEYS_QUEUED_COUNT ZLE variable
2017-03-03 10:18:46 +00:00
Barton E. Schaefer
6557aa4710
40469: change strategy from 40453 to use patcompile(PAT_HEAPDUP) instead of signal queueing.
2017-01-30 08:03:47 -08:00
Barton E. Schaefer
e51c9c17af
40453: signal handler safety for callers of patcompile(PAT_STATIC), which is not re-entrant.
2017-01-29 08:30:14 -08:00
Peter Stephenson
ebd7fdd932
40362: Fix setting of parameter values in compvalues
2017-01-15 17:15:04 +00:00
Oliver Kiddle
b6082cd1e2
40321: _arguments option groups
2017-01-11 20:50:02 +01:00
Peter Stephenson
34656ec2f0
40305: fix some problems redisplaying command line after interrupt.
...
Back off previous fix as this only covered some subset of problems.
Remaining problems happend after reset-prompt in TRAPINT.
One was in complist and is fixed by not attempting to list after
an error or interrupt.
The other was owing to not resetting clearflag when ZLE
was re-entered.
2017-01-10 19:18:52 +00:00
Peter Stephenson
48cadf48ff
40285: Be more careful with pattern allocation in history isearch.
...
If there are ZLE hooks to be called, they may use patterns, in
which case it's not safe to allocate the isearch pattern in the
static buffer.
2017-01-06 17:42:13 +00:00
Oliver Kiddle
c2b7c5abbe
40269: handle option exclusion within current word for clumped options
...
This replaces the change made in 13999 with an alternative approach.
2017-01-05 13:31:13 +01:00
Oliver Kiddle
8be732cbcc
40227: handle _arguments sets and rest arguments starting with a dash
...
This is a new approach to the problem first covered by 39611: checking
to see if an option-like argument belongs to one of the other sets.
2017-01-04 14:50:56 +01:00
Oliver Kiddle
a69b19d215
40226: tidy up some of the _arguments set code
...
Remove old code for applying explicit exclusions between sets which
fixes some odd behaviour. Some struct members were unused. Also added
some comments and test cases.
2017-01-04 14:42:39 +01:00
Oliver Kiddle
02eb1595e8
40162: _arguments support for a match spec in combination with sets
2016-12-22 16:12:42 +01:00
Barton E. Schaefer
efd3baf2a2
40134: silence spurious compiler warnings.
2016-12-10 19:13:53 -08:00
Oliver Kiddle
8c4e1b6832
40129: revert 39611, add code comments and test cases for _arguments
2016-12-09 00:00:30 +01:00
Daniel Shahaf
fd2ca229dd
40067: internal: Document 'cmatcher', parse_cmatcher(), 'comptoend', unsetparam_pm(), and getindex().
2016-12-03 09:54:11 +00:00
Peter Stephenson
e8df1c7056
40043: fix computil.c indentation (cosmetic)
2016-11-30 16:19:21 +00:00
Eitan Adler
110ffae9fe
40035: Cosmetic fixes for comments and documentation.
...
Mostly fixes to doubled words.
2016-11-29 17:13:52 +00:00
Peter Stephenson
32daf2a0aa
40026: Fix for completion after redirection.
...
This could get confused about where we were in the command
line word array e.g. after the > of "!> .". Also take more care
if does confused, with debug output. Also neaten up one
obscure test.
2016-11-29 17:08:56 +00:00
Oliver Kiddle
2e44ac72f6
unposted: fix to compile on Solaris where curses.h has a #define for reg to register
2016-11-24 16:11:52 +01:00
Oliver Kiddle
3570172d3b
40003: include "0-"9 vi buffers in the registers associative array
2016-11-24 16:05:00 +01:00
Bart Schaefer
c0f95d07e7
unposted: clear ERRFLAG_ERROR before invoking immortal widget (cf. 39934)
...
Updates commit cbb9ca3d
2016-11-23 18:15:17 -08:00
Daniel Shahaf
1f5c734f5e
39981: Make compstate[to_end] skip suffix and hidden suffix, but not ignored suffix.
...
Motivated by 39930.
2016-11-21 05:40:09 +00:00
Oliver Kiddle
cb5f100bd3
39986, 39989: improve handling of vi-repeat-change
...
Save previous vi change and throw away a new change that fails.
Add zle -f vichange to allow shell widget to be a single change.
Fix repeat of command where numeric arguments were multiplied.
2016-11-20 23:59:48 +01:00
Daniel Shahaf
6e1684e332
unposted (after 39952): Restore C89 compatibility.
2016-11-20 08:09:33 +00:00
Peter Stephenson
a62e1640bc
39958: Add extra byte to PATH_MAX allocations.
...
This ensures we've got enough space for a null, although this
isn't always needed.
2016-11-17 19:49:17 +00:00
Oliver Kiddle
0a6098a1d4
39962: bind vi case conversion widgets
...
u/U in visual mode and g~ from normal mode
2016-11-17 12:32:28 +01:00
Oliver Kiddle
48bdcd7713
39959: when repeating vi changes advance through the numbered killring registers
...
Also fix numeric arguments with vi-repeat-change: and argument passed
to the repeat replaces that previously saved with the change.
2016-11-17 12:28:08 +01:00
Oliver Kiddle
6d991ce177
39952: add registers special parameter to provide access to the vi register buffers from a zle widget function
2016-11-17 12:27:52 +01:00
Oliver Kiddle
7d2f805008
39945: allow further tab presses to move on to menu completion even when compstate[insert] is emptied
2016-11-16 09:42:49 +01:00
Barton E. Schaefer
56e3d23b98
unposted: comment in zlecallhook() points to redrawhook() just in case
2016-11-13 18:15:23 -08:00
Barton E. Schaefer
cbb9ca3dfb
39934: if a widget execution fails, try to execute a corresponding immortal widget instead.
2016-11-13 15:52:09 -08:00
Barton E. Schaefer
7b8f638713
39933: more of zlecallhook() in redrawhook()
...
add commentary on some of the differences
2016-11-13 11:04:25 -08:00
Oliver Kiddle
58ce2f119a
39829: when compstate[insert] is emptied by the completion function and AUTO_MENU is set, start menu completion on the second tab press rather than the third
2016-11-05 00:36:29 +01:00
Peter Stephenson
533d839384
unposted: comment explaining key buffer handling.
...
Describe putting back the tail end of the key buffer into
the input.
2016-11-03 17:03:37 +00:00
Daniel Shahaf
9d460a9d7f
39806: internal: Document zle's vichgbuf.
2016-11-03 16:44:14 +00:00
Daniel Shahaf
4ad1ad9777
39805: internal: Document some compadd internals.
2016-11-03 16:44:14 +00:00
Daniel Shahaf
b4d5a55b39
39804: internal: Document matchspec flags.
2016-11-03 16:44:14 +00:00
Daniel Shahaf
952e607395
39803: internal: Document bin_compadd().
2016-11-03 16:44:14 +00:00
Daniel Shahaf
36b290814f
39802: internal: Document and simplify multiquote().
...
The code simplifications take advantage of the fact that all callers
pass either 0 or 1 for 'ign'.
The tildequote() text is from workers/39271.
2016-11-03 16:44:14 +00:00
Barton E. Schaefer
060ff48915
39820: vi-repeat handles multi-key bindings
2016-11-03 09:13:03 -07:00
Barton E. Schaefer
696444714e
39813: fix keybuflen after ungetting extra keys from the end of keybuf in getkeymapcmd().
2016-11-03 09:12:10 -07:00
Barton E. Schaefer
ae4c035cde
39811: vi-repeat-change must not be the "motion" of vi-change, lest it infinitely repeat itself
2016-11-02 16:27:29 -07:00
Barton E. Schaefer
364c4047e7
39725: more metafication of patterns.
2016-10-25 12:45:51 -07:00
Peter Stephenson
39ae9cd10a
39723: metafy string passed to pattern in complist.
...
Also additional safety tokenizing a string with Meta characters.
2016-10-25 11:53:49 +01:00
Peter Stephenson
6f071b2309
39715: Handle multibyte characters in complist listing
2016-10-23 21:32:58 +01:00
m0viefreak
5b192a4cd1
39590: zle: Call zle-line-pre-redraw after inserting a completion result
...
This is necessary to make sure redrawhook() is called while
cycling results in menu completion.
2016-10-18 14:19:59 +00:00