4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: CTRL-^ doesn't use the 'confirm' option. Same problem with
12 ":bnext". (Yakov Lerner)
13 Solution: Put up a dialog for a changed file when 'confirm' is set in more
15 Files: src/buffer.c, src/ex_cmds.c
18 *** ../vim-6.2.086/src/buffer.c Thu Sep 11 21:08:22 2003
19 --- src/buffer.c Sun Sep 7 23:17:03 2003
23 if (!forceit && bufIsChanged(buf))
25 ! EMSGN(_("E89: No write since last change for buffer %ld (add ! to override)"),
33 if (!forceit && bufIsChanged(buf))
35 ! #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
36 ! if ((p_confirm || cmdmod.confirm) && p_write)
38 ! dialog_changed(buf, FALSE);
39 ! # ifdef FEAT_AUTOCMD
40 ! if (!buf_valid(buf))
41 ! /* Autocommand deleted buffer, oops! It's not changed
46 ! if (bufIsChanged(buf))
49 ! EMSGN(_("E89: No write since last change for buffer %ld (add ! to override)"),
59 if (action == DOBUF_GOTO && !can_abandon(curbuf, forceit))
61 ! EMSG(_(e_nowrtmsg));
65 /* Go to the other buffer. */
68 if (action == DOBUF_GOTO && !can_abandon(curbuf, forceit))
70 ! #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
71 ! if ((p_confirm || cmdmod.confirm) && p_write)
73 ! dialog_changed(curbuf, FALSE);
74 ! # ifdef FEAT_AUTOCMD
75 ! if (!buf_valid(buf))
76 ! /* Autocommand deleted buffer, oops! */
80 ! if (bufIsChanged(curbuf))
83 ! EMSG(_(e_nowrtmsg));
88 /* Go to the other buffer. */
89 *** ../vim-6.2.086/src/ex_cmds.c Tue Sep 9 22:48:37 2003
90 --- src/ex_cmds.c Tue Sep 9 22:03:12 2003
93 if (other && !forceit && curbuf->b_nwindows == 1 && !P_HID(curbuf)
94 && curbufIsChanged() && autowrite(curbuf, forceit) == FAIL)
98 ! EMSG(_(e_nowrtmsg));
99 ! retval = 2; /* file has been changed */
105 if (other && !forceit && curbuf->b_nwindows == 1 && !P_HID(curbuf)
106 && curbufIsChanged() && autowrite(curbuf, forceit) == FAIL)
108 ! #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
109 ! if (p_confirm && p_write)
110 ! dialog_changed(curbuf, FALSE);
111 ! if (curbufIsChanged())
116 ! EMSG(_(e_nowrtmsg));
117 ! retval = 2; /* file has been changed */
123 *** ../vim-6.2.086/src/version.c Thu Sep 11 21:31:02 2003
124 --- src/version.c Thu Sep 11 21:32:40 2003
128 { /* Add new patch number below this line */
134 Yesterday, all my deadlines seemed so far away
135 now it looks as though it's freeze in four days
136 oh I believe in cvs..
137 [ CVS log "Beatles style" for FreeBSD ports/INDEX, Satoshi Asami ]
139 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
140 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
141 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
142 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///