term: flush after sending XTGETCAP response

I'm not totally sure this is all there is to it, but in #1850
the response is showing up after vim was exited, so it seems like
it didn't fully receive these responses.

refs: #1850
This commit is contained in:
Wez Furlong committed 2022-04-10 08:40:53 -07:00
1 parent d8e93215e8
commit 4753df96f6
1 file changed
+1
+1
View File
@@ -1166,6 +1166,7 @@ impl TerminalState {
res.escape_debug()
);
self.writer.write_all(res.as_bytes()).ok();
self.writer.flush().ok();
}
fn perform_device(&mut self, dev: Device) {