mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
kitty-tool @: Fix extra newline being printed when a command returns no response
This commit is contained in:
@@ -228,7 +228,9 @@ func send_rc_command(io_data *rc_io_data) (err error) {
|
|||||||
if response.Data.is_string && io_data.string_response_is_err {
|
if response.Data.is_string && io_data.string_response_is_err {
|
||||||
return fmt.Errorf("%s", response.Data.as_str)
|
return fmt.Errorf("%s", response.Data.as_str)
|
||||||
}
|
}
|
||||||
fmt.Println(strings.TrimRight(response.Data.as_str, "\n \t"))
|
if response.Data.as_str != "" {
|
||||||
|
fmt.Println(strings.TrimRight(response.Data.as_str, "\n \t"))
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user