vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 35fd3f37280693cc6686a358aad642802031070f parent a3c632e3c78a0403697204cf1c880ba96c97151a Author: Marc André Tanner <mat@brain-dump.org> Date: Tue, 20 Oct 2020 18:26:20 +0200 text: fix invalid pointer comparison Diffstat:
| M | text-iterator.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/text-iterator.c b/text-iterator.c @@ -27,7 +27,7 @@ bool text_iterator_byte_next(Iterator *it, char *b) { if (!text_iterator_has_next(it)) return false; bool eof = true; - if (it->text < it->end) { + if (it->text != it->end) { it->text++; it->pos++; eof = false;