fix(undotree): mark title field annotation as optional (#36102)

* fix(undotree): mark title field annotation as optional

* fix(doc): run make doc for undotree annotation change
This commit is contained in:
Mike J McGuirk
2025-10-09 10:49:49 -04:00
committed by GitHub
parent ad8bce6674
commit 4598305e0b
2 changed files with 4 additions and 4 deletions

View File

@@ -181,9 +181,9 @@ open({opts}) *undotree.open()*
• {command} (`string?`) Vimscript command to create the
window. Default value is "30vnew". Only used when {winid} is
nil.
• {title} (`string|fun(bufnr:integer):string?`) Title of the
window. If a function, it accepts the buffer number of the
source buffer as its only argument and should return a
• {title} (`(string|fun(bufnr:integer):string?)?`) Title of
the window. If a function, it accepts the buffer number of
the source buffer as its only argument and should return a
string.

View File

@@ -287,7 +287,7 @@ end
---
--- Title of the window. If a function, it accepts the buffer number of the
--- source buffer as its only argument and should return a string.
--- @field title (string|fun(bufnr:integer):string|nil)
--- @field title (string|fun(bufnr:integer):string|nil)?
--- Open a window that displays a textual representation of the undotree.
---