comparison src/if_py_both.h @ 31263:d8e7d725a666 v9.0.0965

patch 9.0.0965: using one window for executing autocommands is insufficient Commit: https://github.com/vim/vim/commit/e76062c078debed0df818f70e4db14ad7a7cb53a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 28 18:51:43 2022 +0000 patch 9.0.0965: using one window for executing autocommands is insufficient Problem: Using one window for executing autocommands is insufficient. Solution: Use up to five windows for executing autocommands.
author Bram Moolenaar <Bram@vim.org>
date Mon, 28 Nov 2022 20:00:05 +0100
parents 684e6dfa2fba
children 25b9669741b2
comparison
equal deleted inserted replaced
31262:7f766b7e17d5 31263:d8e7d725a666
5281 return -1; 5281 return -1;
5282 5282
5283 VimTryStart(); 5283 VimTryStart();
5284 // Using aucmd_*: autocommands will be executed by rename_buffer 5284 // Using aucmd_*: autocommands will be executed by rename_buffer
5285 aucmd_prepbuf(&aco, self->buf); 5285 aucmd_prepbuf(&aco, self->buf);
5286 ren_ret = rename_buffer(val); 5286 if (curbuf == self->buf)
5287 aucmd_restbuf(&aco); 5287 {
5288 ren_ret = rename_buffer(val);
5289 aucmd_restbuf(&aco);
5290 }
5288 Py_XDECREF(todecref); 5291 Py_XDECREF(todecref);
5289 if (VimTryEnd()) 5292 if (VimTryEnd())
5290 return -1; 5293 return -1;
5291 5294
5292 if (ren_ret == FAIL) 5295 if (ren_ret == FAIL)