aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-11-16 14:12:13 -0500
committerJames McCoy <jamessan@jamessan.com>2017-06-04 22:12:14 -0400
commit03f5f78792c578520139a785c0d3d34e284c372d (patch)
tree2366ca3f86943a8e6e776b58228ea05224f2053e /src/nvim/option.c
parent0164a5fea3a240efc631bc10ebf1b547c2149971 (diff)
downloadrneovim-03f5f78792c578520139a785c0d3d34e284c372d.tar.gz
rneovim-03f5f78792c578520139a785c0d3d34e284c372d.tar.bz2
rneovim-03f5f78792c578520139a785c0d3d34e284c372d.zip
vim-patch:7.4.1979
Problem: Getting value of binary option is wrong. (Kent Sibilev) Solution: Fix type cast. Add a test. https://github.com/vim/vim/commit/2acfbed9dbea990f129535de7ff3df360365130b
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index defe0ad246..aed55620a1 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -4630,7 +4630,7 @@ get_option_value (
if ((int *)varp == &curbuf->b_changed) {
*numval = curbufIsChanged();
} else {
- *numval = (long) *(varnumber_T *)varp;
+ *numval = (long) *(int *)varp;
}
}
return 1;