(mcview__get_nroff_real_len): immediately return 0 if viewer is not in nroff mode..

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2011-06-29 22:25:23 +04:00 committed by Slava Zanko
parent ff2132b0a8
commit 287dc015f3

View File

@ -229,6 +229,9 @@ mcview__get_nroff_real_len (mcview_t * view, off_t start, off_t length)
int ret = 0;
off_t i = 0;
if (!view->text_nroff_mode)
return 0;
nroff = mcview_nroff_seq_new_num (view, start);
if (nroff == NULL)
return 0;