aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2023-08-25 10:53:35 +0300
committerEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2023-08-26 19:37:43 +0300
commit35570e4a11bef061777d741929f74fa66ba3f45a (patch)
treeef0a8587fa7f7cb30ca8241dae5b2d2cb6d72fc3 /src/nvim/window.c
parent617fd5bdc6ab9a82bfc6136f549fc31dcf442ed7 (diff)
downloadrneovim-35570e4a11bef061777d741929f74fa66ba3f45a.tar.gz
rneovim-35570e4a11bef061777d741929f74fa66ba3f45a.tar.bz2
rneovim-35570e4a11bef061777d741929f74fa66ba3f45a.zip
feat(float): implement footer
Problem: Now way to show text at the bottom part of floating window border (a.k.a. "footer"). Solution: Allows `footer` and `footer_pos` config fields similar to `title` and `title_pos`.
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 970027b2f8..e72c32700d 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -5239,8 +5239,9 @@ static void win_free(win_T *wp, tabpage_T *tp)
}
}
- // free the border title text
+ // free the border text
clear_virttext(&wp->w_float_config.title_chunks);
+ clear_virttext(&wp->w_float_config.footer_chunks);
clear_matches(wp);