From 1c5eee3c91b5a308c30a50f3f174543aa84b0090 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 30 Jul 2018 16:19:36 -0400 Subject: [PATCH] syntax: add const to get_syntax_attr() params --- src/nvim/screen.c | 3 +-- src/nvim/syntax.c | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 9f0d8a5080..351578363c 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -3294,8 +3294,7 @@ win_line ( did_emsg = FALSE; syntax_attr = get_syntax_attr((colnr_T)v - 1, - has_spell ? &can_spell : - NULL, FALSE); + has_spell ? &can_spell : NULL, false); if (did_emsg) { wp->w_s->b_syn_error = TRUE; diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 0e40677f8b..b612e5b66a 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -1568,9 +1568,9 @@ syn_finish_line( */ int get_syntax_attr( - colnr_T col, - bool *can_spell, - int keep_state /* keep state of char at "col" */ + const colnr_T col, + bool *const can_spell, + const bool keep_state // keep state of char at "col" ) { int attr = 0;