瀏覽代碼

fix: pass cfg

ayn2op 1 年之前
父節點
當前提交
4164ee3f0c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      cmd/message_input.go

+ 1 - 0
cmd/message_input.go

@@ -26,6 +26,7 @@ type MessageInput struct {
 func newMessageInput(app *tview.Application, cfg *config.Config) *MessageInput {
 	mi := &MessageInput{
 		TextArea: tview.NewTextArea(),
+		cfg:      cfg,
 		app:      app,
 	}