Skip to content

Commit

Permalink
do not break autocmd when no hanging line found.
Browse files Browse the repository at this point in the history
  • Loading branch information
gzagatti committed Aug 31, 2022
1 parent d87e792 commit f37626f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ "$#" -eq 3 ]; then
CURSOR_COLUMN=${3:-1}
AUTOCMD_TERMCLOSE_CMD="call cursor(max([0,${INPUT_LINE_NUMBER}-1])+${CURSOR_LINE}, ${CURSOR_COLUMN})"
else
AUTOCMD_TERMCLOSE_CMD="execute 'set modifiable' | execute '%s#\(\$\n\s*\)\+\%\$##' | execute 'normal G'"
AUTOCMD_TERMCLOSE_CMD="execute 'set modifiable' | execute '%s#\(\$\n\s*\)\+\%\$##e' | execute 'normal G'"
fi

# 63<&0 :: sends stdin 0 to stdin 63
Expand Down

0 comments on commit f37626f

Please sign in to comment.