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 buf
|
||||||
/// @param checkall may abandon all changed buffers
|
/// @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];
|
char_u buff[DIALOG_MSG_SIZE];
|
||||||
int ret;
|
int ret;
|
||||||
exarg_T ea;
|
exarg_T ea;
|
||||||
|
|
||||||
dialog_msg(buff, _("Save changes to \"%s\"?"),
|
assert(buf->b_fname != NULL);
|
||||||
(buf->b_fname != NULL) ?
|
dialog_msg(buff, _("Save changes to \"%s\"?"), buf->b_fname);
|
||||||
buf->b_fname : (char_u *)_("Untitled"));
|
|
||||||
if (checkall) {
|
if (checkall) {
|
||||||
ret = vim_dialog_yesnoallcancel(VIM_QUESTION, NULL, buff, 1);
|
ret = vim_dialog_yesnoallcancel(VIM_QUESTION, NULL, buff, 1);
|
||||||
} else {
|
} else {
|
||||||
|
@ -2882,8 +2882,8 @@ close_others (
|
|||||||
}
|
}
|
||||||
if (!r) {
|
if (!r) {
|
||||||
if (message && (p_confirm || cmdmod.confirm) && p_write) {
|
if (message && (p_confirm || cmdmod.confirm) && p_write) {
|
||||||
dialog_changed(wp->w_buffer, FALSE);
|
dialog_changed(wp->w_buffer, false);
|
||||||
if (!win_valid(wp)) { /* autocommands messed wp up */
|
if (!win_valid(wp)) { // autocommands messed wp up
|
||||||
nextwp = firstwin;
|
nextwp = firstwin;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user