aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorprollings <patrickrollings@gmail.com>2016-08-04 14:22:45 +1000
committerJustin M. Keyes <justinkz@gmail.com>2016-08-04 00:22:45 -0400
commit0d93cd6c46e0b81e981197c4446aceb325325b5a (patch)
treebc736baf8ae595cc252dd91c6a7f49cd74fc4f2b /src/nvim/buffer_defs.h
parent08d11bd42f3cacc66f3d6097ff18c50059079f14 (diff)
downloadrneovim-0d93cd6c46e0b81e981197c4446aceb325325b5a.tar.gz
rneovim-0d93cd6c46e0b81e981197c4446aceb325325b5a.tar.bz2
rneovim-0d93cd6c46e0b81e981197c4446aceb325325b5a.zip
vim-patch:7.4.1557 (#5117)
Problem: Windows cannot be identified. Solution: Add a unique window number to each window and functions to use it. https://github.com/vim/vim/commit/86edef664efccbfe685906c854b9cdd04e56f2d5
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index b515c4e1e4..46687f344c 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -937,8 +937,9 @@ struct matchitem {
*/
struct window_S {
uint64_t handle;
- buf_T *w_buffer; /* buffer we are a window into (used
- often, keep it the first item!) */
+ int w_id; ///< unique window ID
+ buf_T *w_buffer; ///< buffer we are a window into (used
+ ///< often, keep it the first item!)
synblock_T *w_s; /* for :ownsyntax */