diff options
author | oni-link <knil.ino@gmail.com> | 2014-05-22 12:01:59 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-06-05 18:32:00 -0400 |
commit | 82d11c07725efaa3d158813e5f2ef0c49ee6b40d (patch) | |
tree | 31898bb07f863b7049e3aa02c4a868094c84cdeb /src/nvim/eval.c | |
parent | f68bf38547d85587a012dcbd7a4c92f2087b11af (diff) | |
download | rneovim-82d11c07725efaa3d158813e5f2ef0c49ee6b40d.tar.gz rneovim-82d11c07725efaa3d158813e5f2ef0c49ee6b40d.tar.bz2 rneovim-82d11c07725efaa3d158813e5f2ef0c49ee6b40d.zip |
vim-patch:7.4.286 #750
Problem: Error messages are inconsistant. (ZyX)
Solution: Change "Lists" to "list".
https://code.google.com/p/vim/source/detail?r=be19015ef43cc17825929206790696c2e716035d
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 85361b50f4..7408a7926a 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -3438,10 +3438,11 @@ static int eval4(char_u **arg, typval_T *rettv, int evaluate) n1 = !n1; } else if (rettv->v_type != var2.v_type || (type != TYPE_EQUAL && type != TYPE_NEQUAL)) { - if (rettv->v_type != var2.v_type) + if (rettv->v_type != var2.v_type) { EMSG(_("E691: Can only compare List with List")); - else - EMSG(_("E692: Invalid operation for Lists")); + } else { + EMSG(_("E692: Invalid operation for List")); + } clear_tv(rettv); clear_tv(&var2); return FAIL; |