comparison src/buffer.c @ 17225:09fa437d33d8 v8.1.1612

patch 8.1.1612: cannot show an existing buffer in a popup window commit https://github.com/vim/vim/commit/5b8cfedfbd19a71a30c73cf44b0aec3da7fc1a24 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 30 22:16:10 2019 +0200 patch 8.1.1612: cannot show an existing buffer in a popup window Problem: Cannot show an existing buffer in a popup window. Solution: Support buffer number argument in popup_create().
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 Jun 2019 22:30:05 +0200
parents ebe9aab81898
children cfdef48743ed
comparison
equal deleted inserted replaced
17224:e92df9dfef0f 17225:09fa437d33d8
117 apply_autocmds(EVENT_STDINREADPOST, NULL, NULL, FALSE, curbuf); 117 apply_autocmds(EVENT_STDINREADPOST, NULL, NULL, FALSE, curbuf);
118 #endif 118 #endif
119 } 119 }
120 } 120 }
121 return retval; 121 return retval;
122 }
123
124 /*
125 * Ensure buffer "buf" is loaded. Does not trigger the swap-exists action.
126 */
127 void
128 buffer_ensure_loaded(buf_T *buf)
129 {
130 if (buf->b_ml.ml_mfp == NULL)
131 {
132 aco_save_T aco;
133
134 aucmd_prepbuf(&aco, buf);
135 swap_exists_action = SEA_NONE;
136 open_buffer(FALSE, NULL, 0);
137 aucmd_restbuf(&aco);
138 }
122 } 139 }
123 140
124 /* 141 /*
125 * Open current buffer, that is: open the memfile and read the file into 142 * Open current buffer, that is: open the memfile and read the file into
126 * memory. 143 * memory.