Skip to content

Commit 91cf949

Browse files
authored
Merge pull request #1988 from psicho2000/feat/maximize-lowdown
Allow lowdown to use complete terminal width
2 parents 62c84dd + 5c0fe2a commit 91cf949

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/nuke

+2-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ handle_extension() {
226226
glow -sdark "${FPATH}" | eval "$PAGER"
227227
exit 0
228228
elif type lowdown >/dev/null 2>&1; then
229-
lowdown -Tterm "${FPATH}" | eval "$PAGER"
229+
cols=$(tput cols)
230+
lowdown -Tterm --term-width="$cols" --term-column="$cols" "${FPATH}" | eval "$PAGER"
230231
exit 0
231232
fi
232233
;;

0 commit comments

Comments
 (0)