docs: improve code comments (#2349)

* docs: annotate `app` struct fields

* docs: annotate `file` struct fields

* docs: improve existing code comments

* docs: add new code comments
This commit is contained in:
CatsDeservePets authored and GitHub committed 2026-01-14 00:16:23 +01:00
1 parent a96bdae71a
commit 48689f9eab
4 files changed
+37 -36

No files matched your search

+2 -1
View File
@@ -974,6 +974,7 @@ func exitCompMenu(app *app) {
func (e *callExpr) eval(app *app, _ []string) {
os.Setenv("lf_count", strconv.Itoa(e.count))
// commands that shouldn't clear the message line
silentCmds := []string{
"addcustominfo",
"clearmaps",
@@ -1570,7 +1571,7 @@ func (e *callExpr) eval(app *app, _ []string) {
case 1:
k, v = e.args[0], ""
case 2:
k, v = e.args[0], e.args[1]
k, v = e.args[0], e.args[1] // don't trim to allow for custom alignment
default:
app.ui.echoerr("addcustominfo: requires either 1 or 2 arguments")
return