vis

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

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

commit c29991e1a1737518a14158f9172bde7304a82525
parent c5af0ff9753decb92b6040fe2d53785276c2e413
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu, 22 Dec 2016 08:58:31 +0100

text: do not rely on indeterminate value in a comparison

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

diff --git a/text.c b/text.c @@ -545,9 +545,9 @@ static void change_free(Change *c) { if (!c) return; /* only free the new part of the span, the old one is still in use */ - piece_free(c->new.start); if (c->new.start != c->new.end) piece_free(c->new.end); + piece_free(c->new.start); free(c); }