tigrawap / slit

slit - a modern PAGER for viewing logs, get more than most in less time
Other
469 stars 18 forks source link

Newlines are ignored when testing if text can fit one screen #61

Closed notramo closed 6 years ago

notramo commented 6 years ago

slit ignores newlines in files when tests if output can fit one screen. For example, the terminal is 50 lines high. If the file has less non-empty lines than the number of terminal lines (e.g. 49), but it has empty lines also (e.g. 3), the ncurses UI is not launched although the total number of lines is more than the terminal height.