aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r--src/nvim/undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index 439cb9b2a5..4d499cc28e 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -2419,7 +2419,7 @@ void ex_undolist(exarg_T *eap)
}
}
- if (ga.ga_len == 0)
+ if (GA_EMPTY(&ga))
MSG(_("Nothing to undo"));
else {
sort_strings((char_u **)ga.ga_data, ga.ga_len);