diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-19 22:11:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-19 22:11:51 +0100 |
commit | 44a2f923c00f1384c9ecde12fb5b4711bc20702e (patch) | |
tree | ff48a0f263f488b023e5b4c7d45af05dade92e8f /src/if_lua.c | |
parent | cc6cf9b9f9045a7d8b5923ea0c556e9a4c2567d3 (diff) | |
download | vim-git-44a2f923c00f1384c9ecde12fb5b4711bc20702e.tar.gz |
patch 7.4.1611v7.4.1611
Problem: The versplit feature makes the code uneccessary complicated.
Solution: Remove FEAT_VERTSPLIT, always support vertical splits when
FEAT_WINDOWS is defined.
Diffstat (limited to 'src/if_lua.c')
-rw-r--r-- | src/if_lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/if_lua.c b/src/if_lua.c index 1c8512fec..8d761004d 100644 --- a/src/if_lua.c +++ b/src/if_lua.c @@ -1177,7 +1177,7 @@ luaV_window_index(lua_State *L) lua_pushinteger(L, w->w_cursor.lnum); else if (strncmp(s, "col", 3) == 0) lua_pushinteger(L, w->w_cursor.col + 1); -#ifdef FEAT_VERTSPLIT +#ifdef FEAT_WINDOWS else if (strncmp(s, "width", 5) == 0) lua_pushinteger(L, W_WIDTH(w)); #endif @@ -1220,7 +1220,7 @@ luaV_window_newindex (lua_State *L) w->w_cursor.col = v - 1; update_screen(VALID); } -#ifdef FEAT_VERTSPLIT +#ifdef FEAT_WINDOWS else if (strncmp(s, "width", 5) == 0) { win_T *win = curwin; |