summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/tv_text_reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/text_viewer/tv_text_reader.c')
-rw-r--r--apps/plugins/text_viewer/tv_text_reader.c14
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 @@
29static int get_block; 29static int get_block;
30static bool get_double_blocks; 30static bool get_double_blocks;
31 31
32bool tv_init_text_reader(unsigned char *buf, size_t bufsize, size_t *used_size) 32bool 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
47void tv_finalize_text_reader(void) 39void tv_finalize_text_reader(void)