aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-29 16:47:29 +0800
committerGitHub <noreply@github.com>2022-11-29 16:47:29 +0800
commit0b79137c59fbe44bded76f123602e552dc6f7b03 (patch)
tree2d1792b209f4536dc593e3dd904ce57e7407e050 /src/nvim/buffer.c
parent98695b49992daa2b40eb3d5b5e4a86e99c92ed0e (diff)
downloadrneovim-0b79137c59fbe44bded76f123602e552dc6f7b03.tar.gz
rneovim-0b79137c59fbe44bded76f123602e552dc6f7b03.tar.bz2
rneovim-0b79137c59fbe44bded76f123602e552dc6f7b03.zip
vim-patch:8.1.2001: some source files are too big (#21231)
Problem: Some source files are too big. Solution: Move buffer and window related functions to evalbuffer.c and evalwindow.c. (Yegappan Lakshmanan, closes vim/vim#4898) https://github.com/vim/vim/commit/261f346f8154c0ec7094a4a211c653c74e9f7c2e
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 67c3307e50..6cb171978b 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -3961,30 +3961,6 @@ char *buf_spname(buf_T *buf)
return NULL;
}
-/// Find a window for buffer "buf".
-/// If found true is returned and "wp" and "tp" are set to
-/// the window and tabpage.
-/// If not found, false is returned.
-///
-/// @param buf buffer to find a window for
-/// @param[out] wp stores the found window
-/// @param[out] tp stores the found tabpage
-///
-/// @return true if a window was found for the buffer.
-bool find_win_for_buf(buf_T *buf, win_T **wp, tabpage_T **tp)
-{
- *wp = NULL;
- *tp = NULL;
- FOR_ALL_TAB_WINDOWS(tp2, wp2) {
- if (wp2->w_buffer == buf) {
- *tp = tp2;
- *wp = wp2;
- return true;
- }
- }
- return false;
-}
-
static int buf_signcols_inner(buf_T *buf, int maximum)
{
sign_entry_T *sign; // a sign in the sign list