diff options
Diffstat (limited to 'apps/plugins/text_viewer/tv_text_reader.c')
-rw-r--r-- | apps/plugins/text_viewer/tv_text_reader.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/apps/plugins/text_viewer/tv_text_reader.c b/apps/plugins/text_viewer/tv_text_reader.c index 28cfa565c3..53c8f6738f 100644 --- a/apps/plugins/text_viewer/tv_text_reader.c +++ b/apps/plugins/text_viewer/tv_text_reader.c | |||
@@ -29,19 +29,11 @@ | |||
29 | static int get_block; | 29 | static int get_block; |
30 | static bool get_double_blocks; | 30 | static bool get_double_blocks; |
31 | 31 | ||
32 | bool tv_init_text_reader(unsigned char *buf, size_t bufsize, size_t *used_size) | 32 | bool tv_init_text_reader(void) |
33 | { | 33 | { |
34 | size_t size; | 34 | tv_init_text_processor(); |
35 | 35 | ||
36 | if (!tv_init_text_processor(buf, bufsize, used_size)) | 36 | return tv_init_pager(); |
37 | return false; | ||
38 | |||
39 | size = *used_size; | ||
40 | if (!tv_init_pager(buf + size, bufsize - size, used_size)) | ||
41 | return false; | ||
42 | |||
43 | *used_size += size; | ||
44 | return true; | ||
45 | } | 37 | } |
46 | 38 | ||
47 | void tv_finalize_text_reader(void) | 39 | void tv_finalize_text_reader(void) |