mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(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:
parent
ff2132b0a8
commit
287dc015f3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user