vis

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

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

commit 45cf58872e527ef48ff708525799dff0d49512ad
parent 20ef1bad6cce5014e104fdcb940590948a939379
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sun,  9 Aug 2015 10:17:08 +0200

vis: fix repeated use of file open dialog

Diffstat:
Mvis.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vis.c b/vis.c @@ -1759,7 +1759,7 @@ static const char *file_open_dialog(const char *pattern) { if (len >= sizeof(filename)) len = 0; if (len > 0) - text_bytes_get(txt, 0, len-1, filename); + text_bytes_get(txt, 0, --len, filename); filename[len] = '\0'; }