diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-03-13 22:05:05 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-04-26 19:17:16 -0400 |
commit | 64b61d49c2c3350833ca490c9fdf8540298cd01a (patch) | |
tree | af2b4047fd193d5fb9748a374775099b6a1f6e5d /src/nvim/eval.c | |
parent | 5f41717838f4cd9d1087e452640ba554500279ab (diff) | |
download | rneovim-64b61d49c2c3350833ca490c9fdf8540298cd01a.tar.gz rneovim-64b61d49c2c3350833ca490c9fdf8540298cd01a.tar.bz2 rneovim-64b61d49c2c3350833ca490c9fdf8540298cd01a.zip |
vim-patch:8.0.1123: cannot define a toolbar for a window
Problem: Cannot define a toolbar for a window.
Solution: Add a window-local toolbar.
https://github.com/vim/vim/commit/1b9645de3c05f37b5c30e78f999351b0cf486ade
"WinBar" code in "screen.c" was not ported.
Fix https://github.com/neovim/neovim/issues/11513#issuecomment-562012827
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 12b13a1f08..e2635650d6 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -7323,6 +7323,7 @@ dict_T *get_win_info(win_T *wp, int16_t tpnr, int16_t winnr) tv_dict_add_nr(dict, S_LEN("winrow"), wp->w_winrow + 1); tv_dict_add_nr(dict, S_LEN("topline"), wp->w_topline); tv_dict_add_nr(dict, S_LEN("botline"), wp->w_botline - 1); + tv_dict_add_nr(dict, S_LEN("winbar"), wp->w_winbar_height); tv_dict_add_nr(dict, S_LEN("width"), wp->w_width); tv_dict_add_nr(dict, S_LEN("bufnr"), wp->w_buffer->b_fnum); tv_dict_add_nr(dict, S_LEN("wincol"), wp->w_wincol + 1); @@ -10364,13 +10365,7 @@ void ex_echo(exarg_T *eap) */ void ex_echohl(exarg_T *eap) { - int id; - - id = syn_name2id(eap->arg); - if (id == 0) - echo_attr = 0; - else - echo_attr = syn_id2attr(id); + echo_attr = syn_name2attr(eap->arg); } /* |