mirror of
https://github.com/vim/vim.git
synced 2025-10-13 06:54:15 -04:00
patch 8.1.0226: too many #ifdefs
Problem: Too many #ifdefs. Solution: Graduate the +vreplace feature, it's not much code and quite a few #ifdefs.
This commit is contained in:
@@ -6450,9 +6450,7 @@ f_has(typval_T *argvars, typval_T *rettv)
|
||||
#ifdef FEAT_VISUALEXTRA
|
||||
"visualextra",
|
||||
#endif
|
||||
#ifdef FEAT_VREPLACE
|
||||
"vreplace",
|
||||
#endif
|
||||
#ifdef FEAT_VTP
|
||||
"vtp",
|
||||
#endif
|
||||
@@ -8400,14 +8398,12 @@ f_mode(typval_T *argvars, typval_T *rettv)
|
||||
buf[0] = '!';
|
||||
else if (State & INSERT)
|
||||
{
|
||||
#ifdef FEAT_VREPLACE
|
||||
if (State & VREPLACE_FLAG)
|
||||
{
|
||||
buf[0] = 'R';
|
||||
buf[1] = 'v';
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
if (State & REPLACE_FLAG)
|
||||
buf[0] = 'R';
|
||||
|
Reference in New Issue
Block a user