diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-24 16:40:23 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-24 23:30:23 -0400 |
commit | 8b13ff0d0a24de0c1c1876e35cf7c3a3004a111a (patch) | |
tree | b237bd8dcb4377bb3c909b0a673146e5d9d3be74 /src | |
parent | 59a8b7fcd957345f8fc27c18f7a7f3e3979f3793 (diff) | |
download | rneovim-8b13ff0d0a24de0c1c1876e35cf7c3a3004a111a.tar.gz rneovim-8b13ff0d0a24de0c1c1876e35cf7c3a3004a111a.tar.bz2 rneovim-8b13ff0d0a24de0c1c1876e35cf7c3a3004a111a.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |