mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +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 {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user