diff src/buffer.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 5ceaecedbad2
children 00836eb177cb
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -858,7 +858,7 @@ free_buffer(buf_T *buf)
     channel_buffer_free(buf);
 #endif
 #ifdef FEAT_TERMINAL
-    free_terminal(buf->b_term);
+    free_terminal(buf);
 #endif
 
     buf_hashtab_remove(buf);