aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-04-26 15:28:10 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-03-02 16:29:50 +0100
commit9a1675b065394734ddaef91a314896028e2b1d46 (patch)
treea8e869da9a89592dd69a806c19dbeacef84f9bf4 /src/nvim/ex_getln.c
parent018e0d5a19c3f710f41a78bcbb0c6e3e393a5ed8 (diff)
downloadrneovim-9a1675b065394734ddaef91a314896028e2b1d46.tar.gz
rneovim-9a1675b065394734ddaef91a314896028e2b1d46.tar.bz2
rneovim-9a1675b065394734ddaef91a314896028e2b1d46.zip
floats: implement floating windows
Co-Author: Dongdong Zhou <dzhou121@gmail.com>
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 27bd23a668..a50e18efce 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -3470,11 +3470,13 @@ void redrawcmd(void)
void compute_cmdrow(void)
{
- if (exmode_active || msg_scrolled != 0)
+ if (exmode_active || msg_scrolled != 0) {
cmdline_row = Rows - 1;
- else
- cmdline_row = lastwin->w_winrow + lastwin->w_height
- + lastwin->w_status_height;
+ } else {
+ win_T *wp = lastwin_nofloating();
+ cmdline_row = wp->w_winrow + wp->w_height
+ + wp->w_status_height;
+ }
}
static void cursorcmd(void)