diff options
-rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -324,7 +324,7 @@ _print_records() { | |||
324 | raw_output="$(_color_pattern "$pattern" <<<"$raw_output")" | 324 | raw_output="$(_color_pattern "$pattern" <<<"$raw_output")" |
325 | fi | 325 | fi |
326 | decorator=$(( $(grep -o '\\e\[0m' <<<"$raw_output" | wc -l) *9 )) | 326 | decorator=$(( $(grep -o '\\e\[0m' <<<"$raw_output" | wc -l) *9 )) |
327 | echo -e "$raw_output" | cut -c -$(( $(tput cols) +decorator )) | 327 | echo -e "$raw_output" | cut -c -$(( $COLUMNS +decorator )) |
328 | done | 328 | done |
329 | 329 | ||
330 | [[ -z $INPUT ]] && _show_hint || true | 330 | [[ -z $INPUT ]] && _show_hint || true |