Fix "minor" issues
authorLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Mon, 11 Mar 2024 13:03:02 +0000 (14:03 +0100)
committerLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Mon, 11 Mar 2024 13:03:02 +0000 (14:03 +0100)
commit4f76beef4452743dafc90beb054a0b5807d8e3fd
treead1a93e16de08abb160a784ae24a71b349766489
parent0d1dadcae29c850b013f94fe549d241bba5a8fad
Fix "minor" issues

Fix off by one error caused by using the whole terminal height instead
of the height used by the table (without the header).
Add missing initialization.
Fix terminal position indexing as it is 1 based (not 0 based).
Handle newline after printing entry separately in the loop mode as when
the entry at the very bottom of the terminal emits newline the
whole output shifts (erasing header).
src/loop.c
src/main.c