4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Message for ":diffput" about buffer not being in diff mode may be
13 Solution: Check for buffer in diff mode but not modifiable.
17 *** ../vim-7.0.200/src/diff.c Tue Feb 20 03:52:04 2007
18 --- src/diff.c Fri Feb 16 01:18:41 2007
22 int start_skip, end_skip;
25 + int found_not_ma = FALSE;
27 /* Find the current buffer in the list of diff buffers. */
28 idx_cur = diff_buf_idx(curbuf);
31 /* No argument: Find the other buffer in the list of diff buffers. */
32 for (idx_other = 0; idx_other < DB_COUNT; ++idx_other)
33 if (curtab->tp_diffbuf[idx_other] != curbuf
34 ! && curtab->tp_diffbuf[idx_other] != NULL
35 ! && (eap->cmdidx != CMD_diffput
36 ! || curtab->tp_diffbuf[idx_other]->b_p_ma))
38 if (idx_other == DB_COUNT)
40 ! EMSG(_("E100: No other buffer in diff mode"));
45 /* No argument: Find the other buffer in the list of diff buffers. */
46 for (idx_other = 0; idx_other < DB_COUNT; ++idx_other)
47 if (curtab->tp_diffbuf[idx_other] != curbuf
48 ! && curtab->tp_diffbuf[idx_other] != NULL)
50 ! if (eap->cmdidx != CMD_diffput
51 ! || curtab->tp_diffbuf[idx_other]->b_p_ma)
53 ! found_not_ma = TRUE;
55 if (idx_other == DB_COUNT)
58 ! EMSG(_("E793: No other buffer in diff mode is modifiable"));
60 ! EMSG(_("E100: No other buffer in diff mode"));
64 *** ../vim-7.0.200/src/version.c Tue Feb 20 03:52:04 2007
65 --- src/version.c Tue Feb 20 04:46:00 2007
69 { /* Add new patch number below this line */
75 hundred-and-one symptoms of being an internet addict:
76 159. You get excited whenever discussing your hard drive.
78 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
79 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
80 \\\ download, build and distribute -- http://www.A-A-P.org ///
81 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///