diff src/evalfunc.c @ 17518:bfc5a2962f38 v8.1.1757

patch 8.1.1757: text added with appendbufline() isn't displayed commit https://github.com/vim/vim/commit/298466629119eda501cfdf7824797f05045e67ca Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 27 17:39:15 2019 +0200 patch 8.1.1757: text added with appendbufline() isn't displayed Problem: Text added with appendbufline() to another buffer isn't displayed. Solution: Update topline. (partly by Christian Brabandt, closes https://github.com/vim/vim/issues/4718)
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Jul 2019 17:45:08 +0200
parents 74b6674b99fd
children ef23ec1eee54
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -1401,12 +1401,7 @@ set_buffer_lines(
 	    if (wp->w_buffer == buf && wp->w_cursor.lnum > append_lnum)
 		wp->w_cursor.lnum += added;
 	check_cursor_col();
-
-#ifdef FEAT_JOB_CHANNEL
-	if (bt_prompt(curbuf) && (State & INSERT))
-	    // show the line with the prompt
-	    update_topline();
-#endif
+	update_topline();
     }
 
     if (!is_curbuf)