mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-12 11:39:33 +02:00
Fix a regression in the previous release that caused pasting large amounts of text to be duplicated
Fixes #709
This commit is contained in:
@@ -30,6 +30,9 @@ Changelog
|
||||
|
||||
- When drag-scrolling stop the scroll when the mouse button is released.
|
||||
|
||||
- Fix a regression in the previous release that caused pasting large amounts
|
||||
of text to be duplicated (:iss:`709`)
|
||||
|
||||
|
||||
0.11.2 [2018-07-01]
|
||||
------------------------------
|
||||
|
||||
@@ -976,7 +976,12 @@ write_to_child(int fd, Screen *screen) {
|
||||
written = screen->write_buf_used;
|
||||
}
|
||||
}
|
||||
screen->write_buf_used -= written;
|
||||
if (written) {
|
||||
screen->write_buf_used -= written;
|
||||
if (screen->write_buf_used) {
|
||||
memmove(screen->write_buf, screen->write_buf + written, screen->write_buf_used);
|
||||
}
|
||||
}
|
||||
screen_mutex(unlock, write);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user