Mercurial > vim
diff src/structs.h @ 16912:a5e3509b33ca v8.1.1457
patch 8.1.1457: cannot reuse a buffer when loading a screen dump
commit https://github.com/vim/vim/commit/87abab92f5b42319a7b10df9974ed3ce5c9b2b9b
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 3 21:14:59 2019 +0200
patch 8.1.1457: cannot reuse a buffer when loading a screen dump
Problem: Cannot reuse a buffer when loading a screen dump.
Solution: Add the "bufnr" option.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 03 Jun 2019 21:30:05 +0200 |
parents | 9138e2c60bf1 |
children | 959ea232e50d |
line wrap: on
line diff
--- a/src/structs.h +++ b/src/structs.h @@ -1807,6 +1807,7 @@ struct channel_S { #define JO2_TERM_KILL 0x4000 /* "term_kill" */ #define JO2_ANSI_COLORS 0x8000 /* "ansi_colors" */ #define JO2_TTY_TYPE 0x10000 /* "tty_type" */ +#define JO2_BUFNR 0x20000 /* "bufnr" */ #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE) #define JO_CB_ALL \ @@ -1864,6 +1865,7 @@ typedef struct int jo_term_cols; int jo_vertical; int jo_curwin; + buf_T *jo_bufnr_buf; int jo_hidden; int jo_term_norestore; char_u *jo_term_name;