diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-19 07:05:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 07:05:54 +0800 |
commit | 22473672aa1ce005d3841d0838a21cd6c6b721f7 (patch) | |
tree | c6508f32e1df04f9b2997a96a8b9134a0b0b27a0 /src/nvim/plines.c | |
parent | a5a5e273233ec6738fa6cda2a6618009646c4c47 (diff) | |
download | rneovim-22473672aa1ce005d3841d0838a21cd6c6b721f7.tar.gz rneovim-22473672aa1ce005d3841d0838a21cd6c6b721f7.tar.bz2 rneovim-22473672aa1ce005d3841d0838a21cd6c6b721f7.zip |
vim-patch:9.0.0788: ModeChanged autocmd not executed when Visual ends with CTRL-C (#20722)
Problem: ModeChanged autocmd not executed when Visual mode is ended with
CTRL-C.
Solution: Do not trigger the autocmd when got_int is set. (closes vim/vim#11394)
https://github.com/vim/vim/commit/61c4b04799bf114cadc3bbf212ae8b2ad22a6980
Cherry-pick removal of cmdwin feature check from patch 9.0.0663.
Diffstat (limited to 'src/nvim/plines.c')
-rw-r--r-- | src/nvim/plines.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/plines.c b/src/nvim/plines.c index cbde0cfff9..42218ac847 100644 --- a/src/nvim/plines.c +++ b/src/nvim/plines.c @@ -37,6 +37,9 @@ /// Functions calculating vertical size of text when displayed inside a window. /// Calls horizontal size functions defined below. +/// Return the number of window lines occupied by buffer line "lnum". +/// Includes any filler lines. +/// /// @param winheight when true limit to window height int plines_win(win_T *wp, linenr_T lnum, bool winheight) { @@ -71,6 +74,9 @@ bool win_may_fill(win_T *wp) return (wp->w_p_diff && diffopt_filler()) || wp->w_buffer->b_virt_line_blocks; } +/// Return the number of window lines occupied by buffer line "lnum". +/// Does not include filler lines. +/// /// @param winheight when true limit to window height int plines_win_nofill(win_T *wp, linenr_T lnum, bool winheight) { |