general: term_size, macos fix.

This commit is contained in:
Dylan Araps 2018-05-20 15:36:54 +10:00
parent c4bf54db3d
commit fc229704c8
1 changed files with 1 additions and 1 deletions

View File

@ -3688,7 +3688,7 @@ get_term_size() {
# If the sequences above don't work and the user is on a macOS system
# or a system not running an X server, return early.
[[ -z "$DISPLAY" || "$os" == "Mac OS X" ]] && \
[[ -z "$DISPLAY" ]] && \
{ term_width=0; return; }
# Get terminal width/height if \e[14t is unsupported.