comparison src/term.c @ 21624:1d75baa22d9a v8.2.1362

patch 8.2.1362: last entry of ":set term=xxx" overwritten by error message Commit: https://github.com/vim/vim/commit/ecd34bf55d72f530859e290ac02ee41f9fb27cce Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 4 20:17:31 2020 +0200 patch 8.2.1362: last entry of ":set term=xxx" overwritten by error message Problem: Last entry of ":set term=xxx" overwritten by error message when 'cmdheight' is two or more. (Tony Mechelynck) Solution: Output extra line breaks.
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Aug 2020 20:30:03 +0200
parents bb3f60b0aca0
children 88070e222e82
comparison
equal deleted inserted replaced
21623:a9bc567389ff 21624:1d75baa22d9a
1761 1761
1762 static void 1762 static void
1763 report_term_error(char *error_msg, char_u *term) 1763 report_term_error(char *error_msg, char_u *term)
1764 { 1764 {
1765 struct builtin_term *termp; 1765 struct builtin_term *termp;
1766 int i;
1766 1767
1767 mch_errmsg("\r\n"); 1768 mch_errmsg("\r\n");
1768 if (error_msg != NULL) 1769 if (error_msg != NULL)
1769 { 1770 {
1770 mch_errmsg(error_msg); 1771 mch_errmsg(error_msg);
1785 #endif 1786 #endif
1786 mch_errmsg(termp->bt_string); 1787 mch_errmsg(termp->bt_string);
1787 mch_errmsg("\r\n"); 1788 mch_errmsg("\r\n");
1788 } 1789 }
1789 } 1790 }
1791 // Output extra 'cmdheight' line breaks to avoid that the following error
1792 // message overwrites the last terminal name.
1793 for (i = 1; i < p_ch; ++i)
1794 mch_errmsg("\r\n");
1790 } 1795 }
1791 1796
1792 static void 1797 static void
1793 report_default_term(char_u *term) 1798 report_default_term(char_u *term)
1794 { 1799 {