aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-05-07 21:32:11 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-17 07:02:44 -0300
commitb4efff652388260b548324f870201a5804e097f0 (patch)
treeb7afb575a4640ef28e06b6a6519839420996a492 /src/nvim/screen.c
parent659cd0e99a0993497279ef8538956eec9f2fc374 (diff)
downloadrneovim-b4efff652388260b548324f870201a5804e097f0.tar.gz
rneovim-b4efff652388260b548324f870201a5804e097f0.tar.bz2
rneovim-b4efff652388260b548324f870201a5804e097f0.zip
Replace ga->ga_len > 0 checks with !GA_EMPTY(ga)
Used Coccinelle to perform the changes ```diff @@ expression E; @@ <... ( - E.ga_len > 0 + !GA_EMPTY(&E) | - E->ga_len > 0 + !GA_EMPTY(E) ) ...> ``` `spatch --in-place --sp-file ga_empty.cocci <C_FILE>`
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 55cc1e23d0..f65fa1066f 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -2380,7 +2380,7 @@ win_line (
if (wp->w_p_spell
&& *wp->w_s->b_p_spl != NUL
- && wp->w_s->b_langp.ga_len > 0
+ && !GA_EMPTY(&wp->w_s->b_langp)
&& *(char **)(wp->w_s->b_langp.ga_data) != NULL) {
/* Prepare for spell checking. */
has_spell = TRUE;