Ticket #3826: mcview: goto doesn't grow file as much as needed.
commitcc95f6f654247ae6b0549cbf22a415b9d2b2ffc3
authorAndrew Borodin <aborodin@vmail.ru>
Sun, 4 Jun 2017 06:47:45 +0000 (4 09:47 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Wed, 28 Jun 2017 05:31:02 +0000 (28 08:31 +0300)
tree70b43170b6be980a56da0ffd789f41647d77f01c
parentb88e72e20f3a323227c96dfcae2a07d848b0a759
Ticket #3826: mcview: goto doesn't grow file as much as needed.

Goto decimal/hexadecimal offset doesn't grow the file if necessary,
rather stops at an earlier offset.
Goto percent doesn't work either. It's trickier because no matter what
the percent value is, it'd need to read the entire contents.
Goto line number works as expected.

* (mcview_dialog_goto): read all data from pipe in case of
MC_VIEW_GOTO_PERCENT.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/viewer/dialogs.c