journalctl: honor --show-cursor in more sitatuations
authorLars Karlitski <lars@karlitski.net>
Thu, 11 May 2017 20:39:23 +0000 (22:39 +0200)
committerLars Karlitski <lars@karlitski.net>
Thu, 11 May 2017 20:49:20 +0000 (22:49 +0200)
commit5f42943c35c753148566e5887a2b9dbf982b42cf
treed6d944ce2d32676bf40f1c0cda2418de883225c9
parent0488435496a9a0215fbd5c3168a53c0592df8eed
journalctl: honor --show-cursor in more sitatuations

Try to honor --show-cursor in more situations by never terminating early
when we didn't read any logs.

In particular, sd_journal_previous_skip() now returns 0 when it didn't
actually skip anything (for example with --lines=0), which resulted in
--show-cursor not working anymore.
src/journal/journalctl.c