From 8b13ff0d0a24de0c1c1876e35cf7c3a3004a111a Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 24 Oct 2020 16:40:23 -0400 Subject: vim-patch:8.1.1260: comparing with pointer instead of value Problem: Comparing with pointer instead of value. Solution: Add a "*". (Ken Takata, closes vim/vim#4336) https://github.com/vim/vim/commit/e4f5f3aa3d597ec9188e01b004013a02bceb4026 --- src/nvim/ex_docmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 71ac542323..211791c19d 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -5400,7 +5400,7 @@ invalid_count: if (parse_addr_type_arg(val, (int)vallen, argt, addr_type_arg) == FAIL) { return FAIL; } - if (addr_type_arg != ADDR_LINES) { + if (*addr_type_arg != ADDR_LINES) { *argt |= (ZEROR | NOTADR); } } else { -- cgit