fix: correct type mismatch in SetDoneFunc callback
Co-authored-by: aider (ollama_chat/gemma4:31b) <aider@aider.chat>
This commit is contained in:
2
main.go
2
main.go
@@ -55,7 +55,7 @@ func main() {
|
|||||||
SetFieldWidth(0)
|
SetFieldWidth(0)
|
||||||
|
|
||||||
// Handle command execution
|
// Handle command execution
|
||||||
cmdInput.SetDoneFunc(func(key tcell.EventKey) {
|
cmdInput.SetDoneFunc(func(key tcell.Key) {
|
||||||
text := cmdInput.GetText()
|
text := cmdInput.GetText()
|
||||||
if text == "q" || text == "quit" {
|
if text == "q" || text == "quit" {
|
||||||
app.Stop()
|
app.Stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user