aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2015-01-14 11:11:06 +0100
committerEliseo Martínez <eliseomarmol@gmail.com>2015-01-19 19:47:27 +0100
commitc03913c991787eb81de8832fccfe328ff9a86e9c (patch)
tree8dbc4f0360c4890c37d68a0ee99e569b92c44777 /src/nvim/option.c
parente1f782187449870b04301fc68d5f7e38d47a1faf (diff)
downloadrneovim-c03913c991787eb81de8832fccfe328ff9a86e9c.tar.gz
rneovim-c03913c991787eb81de8832fccfe328ff9a86e9c.tar.bz2
rneovim-c03913c991787eb81de8832fccfe328ff9a86e9c.zip
Remove long_u: buffer_defs.h: Refactor long_u.
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 54aeb5534c..a167363abf 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -3597,12 +3597,12 @@ static uint32_t *insecure_flag(int opt_idx, int opt_flags)
{
if (opt_flags & OPT_LOCAL)
switch ((int)options[opt_idx].indir) {
- case PV_STL: return (uint32_t *)(&curwin->w_p_stl_flags);
- case PV_FDE: return (uint32_t *)(&curwin->w_p_fde_flags);
- case PV_FDT: return (uint32_t *)(&curwin->w_p_fdt_flags);
- case PV_INDE: return (uint32_t *)(&curbuf->b_p_inde_flags);
- case PV_FEX: return (uint32_t *)(&curbuf->b_p_fex_flags);
- case PV_INEX: return (uint32_t *)(&curbuf->b_p_inex_flags);
+ case PV_STL: return &curwin->w_p_stl_flags;
+ case PV_FDE: return &curwin->w_p_fde_flags;
+ case PV_FDT: return &curwin->w_p_fdt_flags;
+ case PV_INDE: return &curbuf->b_p_inde_flags;
+ case PV_FEX: return &curbuf->b_p_fex_flags;
+ case PV_INEX: return &curbuf->b_p_inex_flags;
}
/* Nothing special, return global flags field. */