mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
Merge #8929 from janlazo/vim-8.0.0983
This commit is contained in:
commit
885ca3b7a6
@ -1279,15 +1279,14 @@ bool check_changed(buf_T *buf, int flags)
|
||||
///
|
||||
/// @param buf
|
||||
/// @param checkall may abandon all changed buffers
|
||||
void dialog_changed(buf_T *buf, int checkall)
|
||||
void dialog_changed(buf_T *buf, bool checkall)
|
||||
{
|
||||
char_u buff[DIALOG_MSG_SIZE];
|
||||
int ret;
|
||||
exarg_T ea;
|
||||
|
||||
dialog_msg(buff, _("Save changes to \"%s\"?"),
|
||||
(buf->b_fname != NULL) ?
|
||||
buf->b_fname : (char_u *)_("Untitled"));
|
||||
assert(buf->b_fname != NULL);
|
||||
dialog_msg(buff, _("Save changes to \"%s\"?"), buf->b_fname);
|
||||
if (checkall) {
|
||||
ret = vim_dialog_yesnoallcancel(VIM_QUESTION, NULL, buff, 1);
|
||||
} else {
|
||||
|
@ -2882,8 +2882,8 @@ close_others (
|
||||
}
|
||||
if (!r) {
|
||||
if (message && (p_confirm || cmdmod.confirm) && p_write) {
|
||||
dialog_changed(wp->w_buffer, FALSE);
|
||||
if (!win_valid(wp)) { /* autocommands messed wp up */
|
||||
dialog_changed(wp->w_buffer, false);
|
||||
if (!win_valid(wp)) { // autocommands messed wp up
|
||||
nextwp = firstwin;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user