vis

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

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

commit 5b1958529e47ecc035219484b01e13a35be3d941
parent 8a720592cc7d3a4b62c254b7f0335da94d448864
Author: Christian Hesse <mail@eworm.de>
Date:   Mon, 22 Feb 2016 16:54:38 +0100

initized variables

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

diff --git a/view.c b/view.c @@ -635,8 +635,8 @@ void view_update(View *view) { if (view->colorcolumn > 0) { size_t lineno = 0; - int line_cols; /* Track the number of columns we've passed on each line */ - bool line_cc_set; /* Has the colorcolumn attribute been set for this line yet */ + int line_cols = 0; /* Track the number of columns we've passed on each line */ + bool line_cc_set = false; /* Has the colorcolumn attribute been set for this line yet */ for (Line *l = view->topline; l; l = l->next) { if (l->lineno != lineno) {