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

2832 commits

Author SHA1 Message Date
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
Peter Stephenson
c01a178ece Marc Finet: problems with working directory rationalisation.
Ensure the length of the directory is kept up to date.

Abort following symlinks as soon as there's an error.
2014-11-13 19:44:01 +00:00
Barton E. Schaefer
53344183e1 33656: different algorithm for "whence -am" to produce results more consistent with "whence -m"
This uses the scanmatchtable routine to collect the names that match the
input pattern, then uses the original -a path search loop to generate
the output, to avoid duplicating test conditions and output formats.
2014-11-13 09:20:46 -08: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
Peter Stephenson
65f56b5656 33655: remove overlap of node flags 2014-11-08 21:59:58 +00:00
Peter Stephenson
0ccbc3873f Handle -a option to whence in combination with -m. 2014-11-08 20:49:07 +00:00
Oliver Kiddle
36b8f83319 33624: keep region active when widget fails 2014-11-07 11:29:13 +01:00
Mikael Magnusson
a9004ce32f 33607: Fix some minor problems in zattr module
Remove the listattr call in zgetattr, it only caused no error to be output
when trying to retrieve an xattr from a file with no xattrs. When a file
had xattrs, it would just add an extra syscall for no good reason.

Always set an array parameter in zlistattr, this makes the returned value
much easier to use; in fact the _zattr completer didn't account for this
and zlistattr foo <tab> on a file with only one attribute did not work.

Almost all of the patch is only reindent, the only modification that's
not a pure deletions is:
 -        ret = 1 + (attr_len > val_len || attr_len < 0);
 +        ret = 1 + ((val_len > 0 && attr_len > val_len) || attr_len < 0);
which makes sure we return the correct error in the new path due to the
removed listattr call. (If val_len is -1 due to no attribute existing,
it doesn't mean the user should retry the call because the attribute
grew in size).
2014-11-07 11:10:30 +01:00
Barton E. Schaefer
7abd611a23 33614 (based on RedHat BZ-978613): signal safety when updating global state in execshfunc() 2014-11-06 10:50:20 -08: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
Peter Stephenson
023c2236e1 Treat exec from subshell as if forked
This removes weird behaviour when optimising the last command.
In particular SHLVL is correct from a subshell executed as the last
command.
2014-11-02 15:29:06 +00:00
Oliver Kiddle
6a29f66f8a unposted: quash compiler warning 2014-10-31 18:00:05 +01:00
Peter Stephenson
ef4fb421f5 33582: don't include tcp.mdh in zftp.c.
It's a private module definition header that doesn't need
to be exposed.
2014-10-31 10:23:29 +00:00
Jérémie Roquet
52d37d7ff4 Take more care with errors from setuid().
This is to ensure the user is aware of errors unsetting the
PRIVELEGED option.
2014-10-31 10:02:36 +00: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
Jun T
d36421d376 33566: quash null pointer constant compiler warning 2014-10-29 08:48:17 -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
Mikael Magnusson
ed90154e58 33562: Fix thinko in previous commit 2014-10-27 20:54:20 +01:00
Mikael Magnusson
ded97b8ed9 33561: The time builtin forgot to unmetafy TIMEFMT 2014-10-27 20:46:48 +01:00
Peter Stephenson
b4f7ccecd9 33531 with additions: retain status of exited background jobs.
Add linked list of unwaited-for background jobs.
Truncate at value of _SC_CHILD_MAX discarding oldest.
Remove old lastpid_status mechanism for latest exited process only.
Slightly tighten safety of permanently allocated linked lists so
that this doesn't compromise signal handling.
2014-10-26 17:47:42 +00: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
2d4743ce50 33493: use correct command name in error messages about "ulimit" failure; restore internal copy of limits if setrlimit() fails, so the error won't repeat 2014-10-22 08:42:37 -07:00
Barton E. Schaefer
2d14c085b7 33445: fix handling of -s when combined with -i at shell invocation
Fixes a long-standing (25+ years) bug where using -i -s together did have
the documented effect of disabling command line script files but also had
the side-effect of invoking ZLE, thereby ignoring the redirected input.
2014-10-12 11:18:30 -07:00
Peter Stephenson
3b5d77d819 33423: expand ${(p)...} to allow ${(ps.$param.)...} 2014-10-12 17:52:11 +01:00
Barton E. Schaefer
605a73e415 33429: disallow non-integer values for HISTSIZE and SAVEHIST of "fc -p", and fix crash on zero values for same 2014-10-10 23:12:57 -07:00
Mikael Magnusson
49a3086bb6 33365: avoid buffer overflow for very long fds in >& fd syntax 2014-10-06 20:34:28 +02:00
Barton E. Schaefer
a65fb0677c 33354: when backgrounding a pipeline, close all pipe descriptors in the parent
Add test for both this and 33345+33346
2014-10-04 21:08:56 -07:00
Bart Schaefer
74e26bf126 33346: another bit of the 33345 repair 2014-10-03 08:50:25 -07:00
Peter Stephenson
31750795fe 33345: fix anonymous function complex command handling.
Longstanding problem caused simple anonymous function incorrectly to
reset the overall "complext" state, causing wordcode to be diverted
into execsimple(), which caused a crash 'cos ist wasn't simple.
2014-10-03 16:29:56 +01:00
Peter Stephenson
a778215b7c unposted: comments in previous commit were reversed 2014-10-03 14:20:24 +01:00
Peter Stephenson
7666ceb2bc 33343: Variant anonymous function synax with arguments.
Don't expand arguments as if in command position. Test.
2014-10-03 14:17:33 +01:00
Oliver Kiddle
00a654af5c 33323: fix bug in removing math functions and complete -M option to functions 2014-10-02 19:29:32 +02: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