We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87b8eea + 72c5475 commit 1b6b89bCopy full SHA for 1b6b89b
main.go
@@ -86,6 +86,9 @@ func main() {
86
textArea := tview.NewTextArea()
87
textArea.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
88
if event.Key() == tcell.KeyCtrlS {
89
+ if textArea.GetText() == "" {
90
+ return nil
91
+ }
92
sendMsgChan <- textArea.GetText()
93
genFlagChan <- true
94
textArea.SetText("", true)
0 commit comments