first commit
This commit is contained in:
commit
0610f4aeab
130 changed files with 9897 additions and 0 deletions
10
fn/z4h-accept-line
Normal file
10
fn/z4h-accept-line
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env zsh
|
||||
#
|
||||
# z4h-accept-line is just like accept-line except that it inserts \n when
|
||||
# accept-line would result in a parse error or PS2.
|
||||
|
||||
if -z4h-is-valid-list "$PREBUFFER$BUFFER"; then
|
||||
zle accept-line
|
||||
else
|
||||
LBUFFER+=$'\n'
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue