vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 0ff92fecca96c2e53d484f53c6f4048d13342790
parent e54b5a92df0806d2508717c6241375537c701b3c
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Tue,  8 Mar 2016 23:22:05 +0100

Merge branch 'master' of https://github.com/xomachine/vis

Diffstat:
Mview.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/view.c b/view.c @@ -520,8 +520,8 @@ void view_cursor_to(View *view, size_t pos) { * stop once the screen is full, update view->end, view->lastline */ void view_draw(View *view) { view_clear(view); - /* read a screenful of text */ - const size_t text_size = view->width * view->height; + /* read a screenful of text considering each character as 4-byte UTF character*/ + const size_t text_size = view->width * view->height * 4; /* current buffer to work with */ char text[text_size+1]; /* remaining bytes to process in buffer */