aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/view.c b/view.c
index 773f3a7..71f9fe6 100644
--- a/view.c
+++ b/view.c
@@ -360,7 +360,7 @@ void view_draw(View *view) {
* wide character. advance file position and read
* another junk into buffer.
*/
- rem = text_bytes_get(view->text, pos, size, text);
+ rem = text_bytes_get(view->text, pos+prev_cell.len, size, text);
text[rem] = '\0';
cur = text;
continue;