We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87b8eea commit 72c5475Copy full SHA for 72c5475
1 file changed
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