Commit: runtime(doc): clarify diff_filler() function
Christian Brabandt <[email protected]> Tue, 11 Aug 2026 20:00:07 +0200
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <[email protected]> |
runtime(doc): clarify diff_filler() function Commit: https://github.com/vim/vim/commit/02bf0893d536449548f91b75817748a5e25219c0 Author: Christian Brabandt <[email protected]> Date: Tue Aug 11 17:45:16 2026 +0000 runtime(doc): clarify diff_filler() function fixes: https://github.com/vim/vim/issues/20990 Signed-off-by: Christian Brabandt <[email protected]> diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 1f14e7528..d88d5deac 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1,4 +1,4 @@ -*builtin.txt* For Vim version 9.2. Last change: 2026 Jul 25 +*builtin.txt* For Vim version 9.2. Last change: 2026 Aug 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2526,7 +2526,12 @@ diff_filler({lnum}) *diff_filler()* display but don't exist in the buffer. {lnum} is used like with |getline()|. Thus "." is the current line, "'m" mark m, etc. - Returns 0 if the current window is not in diff mode. + + To get the filler lines after the last buffer line, use: > + echo diff_filler(line('$')+1) +< + Returns 0 if the current window is not in diff mode or filler + lines have been disabled using 'diffopt'. Can also be used as a |method|: > GetLnum()->diff_filler() -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1wtqlj-007TFn-69%40256bit.org.