|
Karsten Hopp |
7e7611 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
7e7611 |
Subject: Patch 7.4.082
|
|
Karsten Hopp |
7e7611 |
Fcc: outbox
|
|
Karsten Hopp |
7e7611 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
7e7611 |
Mime-Version: 1.0
|
|
Karsten Hopp |
7e7611 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
7e7611 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
7e7611 |
------------
|
|
Karsten Hopp |
7e7611 |
|
|
Karsten Hopp |
7e7611 |
Patch 7.4.082
|
|
Karsten Hopp |
7e7611 |
Problem: Using "gf" in a changed buffer suggests adding "!", which is not
|
|
Karsten Hopp |
7e7611 |
possible. (Tim Chase)
|
|
Karsten Hopp |
7e7611 |
Solution: Pass a flag to check_changed() wether adding ! make sense.
|
|
Karsten Hopp |
7e7611 |
Files: src/vim.h, src/ex_cmds2.c, src/proto/ex_cmds2.pro, src/globals.h,
|
|
Karsten Hopp |
7e7611 |
src/ex_cmds.c, src/ex_docmd.c
|
|
Karsten Hopp |
7e7611 |
|
|
Karsten Hopp |
7e7611 |
|
|
Karsten Hopp |
7e7611 |
*** ../vim-7.4.081/src/vim.h 2013-11-08 04:30:06.000000000 +0100
|
|
Karsten Hopp |
7e7611 |
--- src/vim.h 2013-11-09 03:00:00.000000000 +0100
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 1176,1181 ****
|
|
Karsten Hopp |
7e7611 |
--- 1176,1190 ----
|
|
Karsten Hopp |
7e7611 |
#define RESIZE_BOTH 15 /* resize in both directions */
|
|
Karsten Hopp |
7e7611 |
|
|
Karsten Hopp |
7e7611 |
/*
|
|
Karsten Hopp |
7e7611 |
+ * flags for check_changed()
|
|
Karsten Hopp |
7e7611 |
+ */
|
|
Karsten Hopp |
7e7611 |
+ #define CCGD_AW 1 /* do autowrite if buffer was changed */
|
|
Karsten Hopp |
7e7611 |
+ #define CCGD_MULTWIN 2 /* check also when several wins for the buf */
|
|
Karsten Hopp |
7e7611 |
+ #define CCGD_FORCEIT 4 /* ! used */
|
|
Karsten Hopp |
7e7611 |
+ #define CCGD_ALLBUF 8 /* may write all buffers */
|
|
Karsten Hopp |
7e7611 |
+ #define CCGD_EXCMD 16 /* may suggest using ! */
|
|
Karsten Hopp |
7e7611 |
+
|
|
Karsten Hopp |
7e7611 |
+ /*
|
|
Karsten Hopp |
7e7611 |
* "flags" values for option-setting functions.
|
|
Karsten Hopp |
7e7611 |
* When OPT_GLOBAL and OPT_LOCAL are both missing, set both local and global
|
|
Karsten Hopp |
7e7611 |
* values, get local value.
|
|
Karsten Hopp |
7e7611 |
*** ../vim-7.4.081/src/ex_cmds2.c 2013-06-28 20:14:53.000000000 +0200
|
|
Karsten Hopp |
7e7611 |
--- src/ex_cmds2.c 2013-11-09 03:14:44.000000000 +0100
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 1436,1455 ****
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
|
|
Karsten Hopp |
7e7611 |
/*
|
|
Karsten Hopp |
7e7611 |
! * return TRUE if buffer was changed and cannot be abandoned.
|
|
Karsten Hopp |
7e7611 |
*/
|
|
Karsten Hopp |
7e7611 |
int
|
|
Karsten Hopp |
7e7611 |
! check_changed(buf, checkaw, mult_win, forceit, allbuf)
|
|
Karsten Hopp |
7e7611 |
buf_T *buf;
|
|
Karsten Hopp |
7e7611 |
! int checkaw; /* do autowrite if buffer was changed */
|
|
Karsten Hopp |
7e7611 |
! int mult_win; /* check also when several wins for the buf */
|
|
Karsten Hopp |
7e7611 |
! int forceit;
|
|
Karsten Hopp |
7e7611 |
! int allbuf UNUSED; /* may write all buffers */
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
if ( !forceit
|
|
Karsten Hopp |
7e7611 |
&& bufIsChanged(buf)
|
|
Karsten Hopp |
7e7611 |
! && (mult_win || buf->b_nwindows <= 1)
|
|
Karsten Hopp |
7e7611 |
! && (!checkaw || autowrite(buf, forceit) == FAIL))
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
#if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
|
|
Karsten Hopp |
7e7611 |
if ((p_confirm || cmdmod.confirm) && p_write)
|
|
Karsten Hopp |
7e7611 |
--- 1436,1455 ----
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
|
|
Karsten Hopp |
7e7611 |
/*
|
|
Karsten Hopp |
7e7611 |
! * Return TRUE if buffer was changed and cannot be abandoned.
|
|
Karsten Hopp |
7e7611 |
! * For flags use the CCGD_ values.
|
|
Karsten Hopp |
7e7611 |
*/
|
|
Karsten Hopp |
7e7611 |
int
|
|
Karsten Hopp |
7e7611 |
! check_changed(buf, flags)
|
|
Karsten Hopp |
7e7611 |
buf_T *buf;
|
|
Karsten Hopp |
7e7611 |
! int flags;
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
+ int forceit = (flags & CCGD_FORCEIT);
|
|
Karsten Hopp |
7e7611 |
+
|
|
Karsten Hopp |
7e7611 |
if ( !forceit
|
|
Karsten Hopp |
7e7611 |
&& bufIsChanged(buf)
|
|
Karsten Hopp |
7e7611 |
! && ((flags & CCGD_MULTWIN) || buf->b_nwindows <= 1)
|
|
Karsten Hopp |
7e7611 |
! && (!(flags & CCGD_AW) || autowrite(buf, forceit) == FAIL))
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
#if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
|
|
Karsten Hopp |
7e7611 |
if ((p_confirm || cmdmod.confirm) && p_write)
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 1457,1463 ****
|
|
Karsten Hopp |
7e7611 |
buf_T *buf2;
|
|
Karsten Hopp |
7e7611 |
int count = 0;
|
|
Karsten Hopp |
7e7611 |
|
|
Karsten Hopp |
7e7611 |
! if (allbuf)
|
|
Karsten Hopp |
7e7611 |
for (buf2 = firstbuf; buf2 != NULL; buf2 = buf2->b_next)
|
|
Karsten Hopp |
7e7611 |
if (bufIsChanged(buf2)
|
|
Karsten Hopp |
7e7611 |
&& (buf2->b_ffname != NULL
|
|
Karsten Hopp |
7e7611 |
--- 1457,1463 ----
|
|
Karsten Hopp |
7e7611 |
buf_T *buf2;
|
|
Karsten Hopp |
7e7611 |
int count = 0;
|
|
Karsten Hopp |
7e7611 |
|
|
Karsten Hopp |
7e7611 |
! if (flags & CCGD_ALLBUF)
|
|
Karsten Hopp |
7e7611 |
for (buf2 = firstbuf; buf2 != NULL; buf2 = buf2->b_next)
|
|
Karsten Hopp |
7e7611 |
if (bufIsChanged(buf2)
|
|
Karsten Hopp |
7e7611 |
&& (buf2->b_ffname != NULL
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 1480,1486 ****
|
|
Karsten Hopp |
7e7611 |
return bufIsChanged(buf);
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
#endif
|
|
Karsten Hopp |
7e7611 |
! EMSG(_(e_nowrtmsg));
|
|
Karsten Hopp |
7e7611 |
return TRUE;
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
return FALSE;
|
|
Karsten Hopp |
7e7611 |
--- 1480,1489 ----
|
|
Karsten Hopp |
7e7611 |
return bufIsChanged(buf);
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
#endif
|
|
Karsten Hopp |
7e7611 |
! if (flags & CCGD_EXCMD)
|
|
Karsten Hopp |
7e7611 |
! EMSG(_(e_nowrtmsg));
|
|
Karsten Hopp |
7e7611 |
! else
|
|
Karsten Hopp |
7e7611 |
! EMSG(_(e_nowrtmsg_nobang));
|
|
Karsten Hopp |
7e7611 |
return TRUE;
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
return FALSE;
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 1690,1696 ****
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
/* Try auto-writing the buffer. If this fails but the buffer no
|
|
Karsten Hopp |
7e7611 |
* longer exists it's not changed, that's OK. */
|
|
Karsten Hopp |
7e7611 |
! if (check_changed(buf, p_awa, TRUE, FALSE, TRUE) && buf_valid(buf))
|
|
Karsten Hopp |
7e7611 |
break; /* didn't save - still changes */
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
--- 1693,1701 ----
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
/* Try auto-writing the buffer. If this fails but the buffer no
|
|
Karsten Hopp |
7e7611 |
* longer exists it's not changed, that's OK. */
|
|
Karsten Hopp |
7e7611 |
! if (check_changed(buf, (p_awa ? CCGD_AW : 0)
|
|
Karsten Hopp |
7e7611 |
! | CCGD_MULTWIN
|
|
Karsten Hopp |
7e7611 |
! | CCGD_ALLBUF) && buf_valid(buf))
|
|
Karsten Hopp |
7e7611 |
break; /* didn't save - still changes */
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 2274,2280 ****
|
|
Karsten Hopp |
7e7611 |
vim_free(p);
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
if ((!P_HID(curbuf) || !other)
|
|
Karsten Hopp |
7e7611 |
! && check_changed(curbuf, TRUE, !other, eap->forceit, FALSE))
|
|
Karsten Hopp |
7e7611 |
return;
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
|
|
Karsten Hopp |
7e7611 |
--- 2279,2288 ----
|
|
Karsten Hopp |
7e7611 |
vim_free(p);
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
if ((!P_HID(curbuf) || !other)
|
|
Karsten Hopp |
7e7611 |
! && check_changed(curbuf, CCGD_AW
|
|
Karsten Hopp |
7e7611 |
! | (other ? 0 : CCGD_MULTWIN)
|
|
Karsten Hopp |
7e7611 |
! | (eap->forceit ? CCGD_FORCEIT : 0)
|
|
Karsten Hopp |
7e7611 |
! | CCGD_EXCMD))
|
|
Karsten Hopp |
7e7611 |
return;
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 2315,2321 ****
|
|
Karsten Hopp |
7e7611 |
*/
|
|
Karsten Hopp |
7e7611 |
if ( P_HID(curbuf)
|
|
Karsten Hopp |
7e7611 |
|| eap->cmdidx == CMD_snext
|
|
Karsten Hopp |
7e7611 |
! || !check_changed(curbuf, TRUE, FALSE, eap->forceit, FALSE))
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
if (*eap->arg != NUL) /* redefine file list */
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
--- 2323,2331 ----
|
|
Karsten Hopp |
7e7611 |
*/
|
|
Karsten Hopp |
7e7611 |
if ( P_HID(curbuf)
|
|
Karsten Hopp |
7e7611 |
|| eap->cmdidx == CMD_snext
|
|
Karsten Hopp |
7e7611 |
! || !check_changed(curbuf, CCGD_AW
|
|
Karsten Hopp |
7e7611 |
! | (eap->forceit ? CCGD_FORCEIT : 0)
|
|
Karsten Hopp |
7e7611 |
! | CCGD_EXCMD))
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
if (*eap->arg != NUL) /* redefine file list */
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 2458,2464 ****
|
|
Karsten Hopp |
7e7611 |
if (eap->cmdidx == CMD_windo
|
|
Karsten Hopp |
7e7611 |
|| eap->cmdidx == CMD_tabdo
|
|
Karsten Hopp |
7e7611 |
|| P_HID(curbuf)
|
|
Karsten Hopp |
7e7611 |
! || !check_changed(curbuf, TRUE, FALSE, eap->forceit, FALSE))
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
/* start at the first argument/window/buffer */
|
|
Karsten Hopp |
7e7611 |
i = 0;
|
|
Karsten Hopp |
7e7611 |
--- 2468,2476 ----
|
|
Karsten Hopp |
7e7611 |
if (eap->cmdidx == CMD_windo
|
|
Karsten Hopp |
7e7611 |
|| eap->cmdidx == CMD_tabdo
|
|
Karsten Hopp |
7e7611 |
|| P_HID(curbuf)
|
|
Karsten Hopp |
7e7611 |
! || !check_changed(curbuf, CCGD_AW
|
|
Karsten Hopp |
7e7611 |
! | (eap->forceit ? CCGD_FORCEIT : 0)
|
|
Karsten Hopp |
7e7611 |
! | CCGD_EXCMD))
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
/* start at the first argument/window/buffer */
|
|
Karsten Hopp |
7e7611 |
i = 0;
|
|
Karsten Hopp |
7e7611 |
*** ../vim-7.4.081/src/proto/ex_cmds2.pro 2013-08-10 13:37:10.000000000 +0200
|
|
Karsten Hopp |
7e7611 |
--- src/proto/ex_cmds2.pro 2013-11-09 03:18:02.000000000 +0100
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 35,41 ****
|
|
Karsten Hopp |
7e7611 |
int prof_def_func __ARGS((void));
|
|
Karsten Hopp |
7e7611 |
int autowrite __ARGS((buf_T *buf, int forceit));
|
|
Karsten Hopp |
7e7611 |
void autowrite_all __ARGS((void));
|
|
Karsten Hopp |
7e7611 |
! int check_changed __ARGS((buf_T *buf, int checkaw, int mult_win, int forceit, int allbuf));
|
|
Karsten Hopp |
7e7611 |
void browse_save_fname __ARGS((buf_T *buf));
|
|
Karsten Hopp |
7e7611 |
void dialog_changed __ARGS((buf_T *buf, int checkall));
|
|
Karsten Hopp |
7e7611 |
int can_abandon __ARGS((buf_T *buf, int forceit));
|
|
Karsten Hopp |
7e7611 |
--- 35,41 ----
|
|
Karsten Hopp |
7e7611 |
int prof_def_func __ARGS((void));
|
|
Karsten Hopp |
7e7611 |
int autowrite __ARGS((buf_T *buf, int forceit));
|
|
Karsten Hopp |
7e7611 |
void autowrite_all __ARGS((void));
|
|
Karsten Hopp |
7e7611 |
! int check_changed __ARGS((buf_T *buf, int flags));
|
|
Karsten Hopp |
7e7611 |
void browse_save_fname __ARGS((buf_T *buf));
|
|
Karsten Hopp |
7e7611 |
void dialog_changed __ARGS((buf_T *buf, int checkall));
|
|
Karsten Hopp |
7e7611 |
int can_abandon __ARGS((buf_T *buf, int forceit));
|
|
Karsten Hopp |
7e7611 |
*** ../vim-7.4.081/src/globals.h 2013-07-04 19:53:44.000000000 +0200
|
|
Karsten Hopp |
7e7611 |
--- src/globals.h 2013-11-09 03:05:54.000000000 +0100
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 1490,1495 ****
|
|
Karsten Hopp |
7e7611 |
--- 1490,1496 ----
|
|
Karsten Hopp |
7e7611 |
EXTERN char_u e_notopen[] INIT(= N_("E484: Can't open file %s"));
|
|
Karsten Hopp |
7e7611 |
EXTERN char_u e_notread[] INIT(= N_("E485: Can't read file %s"));
|
|
Karsten Hopp |
7e7611 |
EXTERN char_u e_nowrtmsg[] INIT(= N_("E37: No write since last change (add ! to override)"));
|
|
Karsten Hopp |
7e7611 |
+ EXTERN char_u e_nowrtmsg_nobang[] INIT(= N_("E37: No write since last change"));
|
|
Karsten Hopp |
7e7611 |
EXTERN char_u e_null[] INIT(= N_("E38: Null argument"));
|
|
Karsten Hopp |
7e7611 |
#ifdef FEAT_DIGRAPHS
|
|
Karsten Hopp |
7e7611 |
EXTERN char_u e_number_exp[] INIT(= N_("E39: Number expected"));
|
|
Karsten Hopp |
7e7611 |
*** ../vim-7.4.081/src/ex_cmds.c 2013-10-02 18:43:00.000000000 +0200
|
|
Karsten Hopp |
7e7611 |
--- src/ex_cmds.c 2013-11-09 03:19:25.000000000 +0100
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 3253,3260 ****
|
|
Karsten Hopp |
7e7611 |
if ( ((!other_file && !(flags & ECMD_OLDBUF))
|
|
Karsten Hopp |
7e7611 |
|| (curbuf->b_nwindows == 1
|
|
Karsten Hopp |
7e7611 |
&& !(flags & (ECMD_HIDE | ECMD_ADDBUF))))
|
|
Karsten Hopp |
7e7611 |
! && check_changed(curbuf, p_awa, !other_file,
|
|
Karsten Hopp |
7e7611 |
! (flags & ECMD_FORCEIT), FALSE))
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
if (fnum == 0 && other_file && ffname != NULL)
|
|
Karsten Hopp |
7e7611 |
(void)setaltfname(ffname, sfname, newlnum < 0 ? 0 : newlnum);
|
|
Karsten Hopp |
7e7611 |
--- 3253,3262 ----
|
|
Karsten Hopp |
7e7611 |
if ( ((!other_file && !(flags & ECMD_OLDBUF))
|
|
Karsten Hopp |
7e7611 |
|| (curbuf->b_nwindows == 1
|
|
Karsten Hopp |
7e7611 |
&& !(flags & (ECMD_HIDE | ECMD_ADDBUF))))
|
|
Karsten Hopp |
7e7611 |
! && check_changed(curbuf, (p_awa ? CCGD_AW : 0)
|
|
Karsten Hopp |
7e7611 |
! | (other_file ? 0 : CCGD_MULTWIN)
|
|
Karsten Hopp |
7e7611 |
! | ((flags & ECMD_FORCEIT) ? CCGD_FORCEIT : 0)
|
|
Karsten Hopp |
7e7611 |
! | (eap == NULL ? 0 : CCGD_EXCMD)))
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
if (fnum == 0 && other_file && ffname != NULL)
|
|
Karsten Hopp |
7e7611 |
(void)setaltfname(ffname, sfname, newlnum < 0 ? 0 : newlnum);
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 7664,7670 ****
|
|
Karsten Hopp |
7e7611 |
# ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
7e7611 |
++emsg_off;
|
|
Karsten Hopp |
7e7611 |
# endif
|
|
Karsten Hopp |
7e7611 |
! split = check_changed(curbuf, TRUE, FALSE, FALSE, FALSE);
|
|
Karsten Hopp |
7e7611 |
# ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
7e7611 |
--emsg_off;
|
|
Karsten Hopp |
7e7611 |
# else
|
|
Karsten Hopp |
7e7611 |
--- 7666,7672 ----
|
|
Karsten Hopp |
7e7611 |
# ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
7e7611 |
++emsg_off;
|
|
Karsten Hopp |
7e7611 |
# endif
|
|
Karsten Hopp |
7e7611 |
! split = check_changed(curbuf, CCGD_AW | CCGD_EXCMD);
|
|
Karsten Hopp |
7e7611 |
# ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
7e7611 |
--emsg_off;
|
|
Karsten Hopp |
7e7611 |
# else
|
|
Karsten Hopp |
7e7611 |
*** ../vim-7.4.081/src/ex_docmd.c 2013-11-08 04:30:06.000000000 +0100
|
|
Karsten Hopp |
7e7611 |
--- src/ex_docmd.c 2013-11-09 03:30:10.000000000 +0100
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 6565,6571 ****
|
|
Karsten Hopp |
7e7611 |
if (check_more(FALSE, eap->forceit) == OK && only_one_window())
|
|
Karsten Hopp |
7e7611 |
exiting = TRUE;
|
|
Karsten Hopp |
7e7611 |
if ((!P_HID(curbuf)
|
|
Karsten Hopp |
7e7611 |
! && check_changed(curbuf, p_awa, FALSE, eap->forceit, FALSE))
|
|
Karsten Hopp |
7e7611 |
|| check_more(TRUE, eap->forceit) == FAIL
|
|
Karsten Hopp |
7e7611 |
|| (only_one_window() && check_changed_any(eap->forceit)))
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
--- 6565,6573 ----
|
|
Karsten Hopp |
7e7611 |
if (check_more(FALSE, eap->forceit) == OK && only_one_window())
|
|
Karsten Hopp |
7e7611 |
exiting = TRUE;
|
|
Karsten Hopp |
7e7611 |
if ((!P_HID(curbuf)
|
|
Karsten Hopp |
7e7611 |
! && check_changed(curbuf, (p_awa ? CCGD_AW : 0)
|
|
Karsten Hopp |
7e7611 |
! | (eap->forceit ? CCGD_FORCEIT : 0)
|
|
Karsten Hopp |
7e7611 |
! | CCGD_EXCMD))
|
|
Karsten Hopp |
7e7611 |
|| check_more(TRUE, eap->forceit) == FAIL
|
|
Karsten Hopp |
7e7611 |
|| (only_one_window() && check_changed_any(eap->forceit)))
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 7099,7105 ****
|
|
Karsten Hopp |
7e7611 |
if (!P_HID(curbuf) && !split)
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
++emsg_off;
|
|
Karsten Hopp |
7e7611 |
! split = check_changed(curbuf, TRUE, FALSE, FALSE, FALSE);
|
|
Karsten Hopp |
7e7611 |
--emsg_off;
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
if (split)
|
|
Karsten Hopp |
7e7611 |
--- 7101,7107 ----
|
|
Karsten Hopp |
7e7611 |
if (!P_HID(curbuf) && !split)
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
++emsg_off;
|
|
Karsten Hopp |
7e7611 |
! split = check_changed(curbuf, CCGD_AW);
|
|
Karsten Hopp |
7e7611 |
--emsg_off;
|
|
Karsten Hopp |
7e7611 |
}
|
|
Karsten Hopp |
7e7611 |
if (split)
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 7361,7367 ****
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
/* Set recoverymode right away to avoid the ATTENTION prompt. */
|
|
Karsten Hopp |
7e7611 |
recoverymode = TRUE;
|
|
Karsten Hopp |
7e7611 |
! if (!check_changed(curbuf, p_awa, TRUE, eap->forceit, FALSE)
|
|
Karsten Hopp |
7e7611 |
&& (*eap->arg == NUL
|
|
Karsten Hopp |
7e7611 |
|| setfname(curbuf, eap->arg, NULL, TRUE) == OK))
|
|
Karsten Hopp |
7e7611 |
ml_recover();
|
|
Karsten Hopp |
7e7611 |
--- 7363,7373 ----
|
|
Karsten Hopp |
7e7611 |
{
|
|
Karsten Hopp |
7e7611 |
/* Set recoverymode right away to avoid the ATTENTION prompt. */
|
|
Karsten Hopp |
7e7611 |
recoverymode = TRUE;
|
|
Karsten Hopp |
7e7611 |
! if (!check_changed(curbuf, (p_awa ? CCGD_AW : 0)
|
|
Karsten Hopp |
7e7611 |
! | CCGD_MULTWIN
|
|
Karsten Hopp |
7e7611 |
! | (eap->forceit ? CCGD_FORCEIT : 0)
|
|
Karsten Hopp |
7e7611 |
! | CCGD_EXCMD)
|
|
Karsten Hopp |
7e7611 |
!
|
|
Karsten Hopp |
7e7611 |
&& (*eap->arg == NUL
|
|
Karsten Hopp |
7e7611 |
|| setfname(curbuf, eap->arg, NULL, TRUE) == OK))
|
|
Karsten Hopp |
7e7611 |
ml_recover();
|
|
Karsten Hopp |
7e7611 |
*** ../vim-7.4.081/src/version.c 2013-11-09 02:32:15.000000000 +0100
|
|
Karsten Hopp |
7e7611 |
--- src/version.c 2013-11-09 03:26:06.000000000 +0100
|
|
Karsten Hopp |
7e7611 |
***************
|
|
Karsten Hopp |
7e7611 |
*** 740,741 ****
|
|
Karsten Hopp |
7e7611 |
--- 740,743 ----
|
|
Karsten Hopp |
7e7611 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
7e7611 |
+ /**/
|
|
Karsten Hopp |
7e7611 |
+ 82,
|
|
Karsten Hopp |
7e7611 |
/**/
|
|
Karsten Hopp |
7e7611 |
|
|
Karsten Hopp |
7e7611 |
--
|
|
Karsten Hopp |
7e7611 |
People who want to share their religious views with you
|
|
Karsten Hopp |
7e7611 |
almost never want you to share yours with them.
|
|
Karsten Hopp |
7e7611 |
|
|
Karsten Hopp |
7e7611 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
7e7611 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
7e7611 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
7e7611 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|