diff src/os_unix.c @ 11834:0cfe4a07c2ad v8.0.0797

patch 8.0.0797: finished job in terminal window is not handled commit https://github.com/vim/vim/commit/d85f271bf8516dbd90be4d18f905f0abbfcd6db6 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 28 21:51:57 2017 +0200 patch 8.0.0797: finished job in terminal window is not handled Problem: Finished job in terminal window is not handled. Solution: Add the scrollback buffer. Use it to fill the buffer when the job has ended.
author Christian Brabandt <cb@256bit.org>
date Fri, 28 Jul 2017 22:00:04 +0200
parents bf8cfdcdbdd8
children 75a85e99f53e
line wrap: on
line diff
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -412,6 +412,9 @@ mch_inchar(
 
 #ifdef MESSAGE_QUEUE
 	parse_queued_messages();
+	/* If input was put directly in typeahead buffer bail out here. */
+	if (typebuf_changed(tb_change_cnt))
+	    return 0;
 #endif
 	if (wtime < 0 && did_start_blocking)
 	    /* blocking and already waited for p_ut */