Skip to content

Commit

Permalink
Temporary fix for issue #6
Browse files Browse the repository at this point in the history
  • Loading branch information
armoar334 committed Sep 3, 2023
1 parent 7c273da commit 035605e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions readline_funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@ kill-word() {
next-history() {
((_comp_hist-=1))
if [[ $_comp_hist -le 0 ]]; then _comp_hist=0; fi
READLINE_LINE="$(history_get)"
READLINE_POINT=${#READLINE_LINE}
if [[ "$READLINE_LINE" != *$'\n'* ]]
then
READLINE_LINE="$(history_get)"
READLINE_POINT=${#READLINE_LINE}
fi
}
#next-screen-line
#non-incremental-forward-search-history
Expand All @@ -187,8 +190,11 @@ previous-history() {
then
_comp_hist=$_histmax
fi
READLINE_LINE="$(history_get)"
READLINE_POINT=${#READLINE_LINE}
if [[ "$READLINE_LINE" != *$'\n'* ]]
then
READLINE_LINE="$(history_get)"
READLINE_POINT=${#READLINE_LINE}
fi
}
#previous-screen-line
#print-last-kbd-macro
Expand Down

0 comments on commit 035605e

Please sign in to comment.