Skip to content

Commit 33b51f7

Browse files
25huizengek1dlvhdr
authored andcommitted
feat: set proper inputbox limit (pr/issue)
On GitHub, (almost) all text content supplied through their API is limited by 65536 characters. Before this commit, the limit for all textboxes in gh-dash was 400 characters. While it is possible to set this field (CharLimit) to unlimited (-1), 65536 seems like a sensible default. Closes: #517 See: https://github.com/orgs/community/discussions/27190
1 parent d16610d commit 33b51f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/components/inputbox/inputbox.go

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func NewModel(ctx *context.ProgramContext) Model {
2828
ta := textarea.New()
2929
ta.ShowLineNumbers = true
3030
ta.Prompt = ""
31+
ta.CharLimit = 65536
3132
ta.FocusedStyle.Base = lipgloss.NewStyle()
3233
ta.FocusedStyle.CursorLine = lipgloss.NewStyle().
3334
Background(ctx.Theme.FaintBorder).

0 commit comments

Comments
 (0)