mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 22:44:50 +02:00
...
This commit is contained in:
@@ -55,8 +55,7 @@ func writestring_ignoring_temporary_errors(f *tty.Term, buf string) (int, error)
|
|||||||
func (self *Loop) flush_pending_writes(tty_write_channel chan<- write_msg) (num_sent int) {
|
func (self *Loop) flush_pending_writes(tty_write_channel chan<- write_msg) (num_sent int) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if num_sent > 0 {
|
if num_sent > 0 {
|
||||||
n := copy(self.pending_writes, self.pending_writes[num_sent:])
|
self.pending_writes = utils.ShiftLeft(self.pending_writes, num_sent)
|
||||||
self.pending_writes = self.pending_writes[:n]
|
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
for len(self.pending_writes) > num_sent {
|
for len(self.pending_writes) > num_sent {
|
||||||
|
|||||||
Reference in New Issue
Block a user