summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2022-07-25 10:56:57 +0200
committerdelthas <delthas@dille.cc>2022-07-25 10:56:57 +0200
commitf52114de33d3b51f298a3a7d1f6b59b3853d112c (patch)
tree8ef4b50bdd0b66d0a636e97a71f57757667aeb6a /app.go
parentFix crashing when shrinking the text to a zero width (diff)
Add pane-widths { text } to limit the max line width
Fixes: https://todo.sr.ht/~taiite/senpai/87
Diffstat (limited to 'app.go')
-rw-r--r--app.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/app.go b/app.go
index 4d5e5b3..2aaa486 100644
--- a/app.go
+++ b/app.go
@@ -127,6 +127,7 @@ func NewApp(cfg Config) (app *App, err error) {
ChanColEnabled: cfg.ChanColEnabled,
MemberColWidth: cfg.MemberColWidth,
MemberColEnabled: cfg.MemberColEnabled,
+ TextMaxWidth: cfg.TextMaxWidth,
AutoComplete: func(cursorIdx int, text []rune) []ui.Completion {
return app.completions(cursorIdx, text)
},