diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-03-17 02:09:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-17 02:09:06 +0100 |
commit | 7c38994ff2397772234bd89faf8b372fa9fecfbd (patch) | |
tree | 643aa51ddeaf8e8c1a5f25ae4f1ac6b3036b1f29 /src/nvim/buffer_defs.h | |
parent | 32998731bf19df219b8d3140943cfffe643573a5 (diff) | |
download | rneovim-7c38994ff2397772234bd89faf8b372fa9fecfbd.tar.gz rneovim-7c38994ff2397772234bd89faf8b372fa9fecfbd.tar.bz2 rneovim-7c38994ff2397772234bd89faf8b372fa9fecfbd.zip |
aucmd_prepbuf: also restore `prevwin` #9741
bisected to f5d5da391715
Other test steps:
nvim -u NORC
:terminal tree / " Produces lots of output
:edit somefile.txt
:vsplit
:vsplit
<c-w>l
<c-w>l
<c-w>h
<c-w>p
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index 48cef9b1e7..d35e3b49d8 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -987,18 +987,16 @@ typedef struct { .relative = 0, .external = false, \ .focusable = true }) -/* - * Structure which contains all information that belongs to a window - * - * All row numbers are relative to the start of the window, except w_winrow. - */ +/// Structure which contains all information that belongs to a window. +/// +/// All row numbers are relative to the start of the window, except w_winrow. struct window_S { handle_T handle; ///< unique identifier for the window buf_T *w_buffer; ///< buffer we are a window into (used ///< often, keep it the first item!) - synblock_T *w_s; /* for :ownsyntax */ + synblock_T *w_s; ///< for :ownsyntax int w_hl_id_normal; ///< 'winhighlight' normal id int w_hl_attr_normal; ///< 'winhighlight' normal final attrs @@ -1008,18 +1006,18 @@ struct window_S { int w_hl_needs_update; ///< attrs need to be recalculated - win_T *w_prev; /* link to previous window */ - win_T *w_next; /* link to next window */ - bool w_closing; /* window is being closed, don't let - autocommands close it too. */ + win_T *w_prev; ///< link to previous window + win_T *w_next; ///< link to next window + bool w_closing; ///< window is being closed, don't let + /// autocommands close it too. - frame_T *w_frame; /* frame containing this window */ + frame_T *w_frame; ///< frame containing this window - pos_T w_cursor; /* cursor position in buffer */ + pos_T w_cursor; ///< cursor position in buffer - colnr_T w_curswant; /* The column we'd like to be at. This is - used to try to stay in the same column - for up/down cursor motions. */ + colnr_T w_curswant; ///< Column we want to be at. This is + /// used to try to stay in the same column + /// for up/down cursor motions. int w_set_curswant; // If set, then update w_curswant the next // time through cursupdate() to the |