Skip to content

Commit

Permalink
Revert ff84e8d
Browse files Browse the repository at this point in the history
Fixes #347.
  • Loading branch information
marlonrichert committed Oct 2, 2021
1 parent f208d04 commit f88619d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions functions/widget/.autocomplete.down-line-or-select.zle-widget
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#!/bin/zsh

if (( BUFFERLINES > 1 )); then
private -i cursor=$CURSOR
builtin zle .down-line
(( cursor == CURSOR )) &&
builtin zle .end-of-line
(( cursor != CURSOR ))
if [[ $RBUFFER == *$'\n'* ]]; then
builtin zle down-line
else
builtin zle menu-select -w
fi
8 changes: 2 additions & 6 deletions functions/widget/.autocomplete.up-line-or-search.zle-widget
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#!/bin/zsh

if (( BUFFERLINES > 1 )); then
private -i cursor=$CURSOR
builtin zle .up-line
(( cursor == CURSOR )) &&
builtin zle .beginning-of-line
(( cursor != CURSOR ))
if [[ $LBUFFER == *$'\n'* ]]; then
builtin zle up-line
else
builtin zle history-search -w
fi

0 comments on commit f88619d

Please sign in to comment.