]>
Commit | Line | Data |
---|---|---|
d8621708 | 1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.045 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 6.2.045 | |
11 | Problem: Obtaining the '( mark changes the '' mark. (Gary Holloway) | |
12 | Solution: Don't set the '' mark when searching for the start/end of the | |
13 | current sentence/paragraph. | |
14 | Files: src/mark.c | |
15 | ||
16 | ||
17 | *** ../vim-6.2.044/src/mark.c Sat Apr 19 16:06:43 2003 | |
18 | --- src/mark.c Mon Jun 23 22:20:34 2003 | |
19 | *************** | |
20 | *** 270,295 **** | |
21 | --- 270,301 ---- | |
22 | { | |
23 | pos_T pos; | |
24 | oparg_T oa; | |
25 | + int slcb = listcmd_busy; | |
26 | ||
27 | pos = curwin->w_cursor; | |
28 | + listcmd_busy = TRUE; /* avoid that '' is changed */ | |
29 | if (findpar(&oa, c == '}' ? FORWARD : BACKWARD, 1L, NUL, FALSE)) | |
30 | { | |
31 | pos_copy = curwin->w_cursor; | |
32 | posp = &pos_copy; | |
33 | } | |
34 | curwin->w_cursor = pos; | |
35 | + listcmd_busy = slcb; | |
36 | } | |
37 | else if (c == '(' || c == ')') /* to previous/next sentence */ | |
38 | { | |
39 | pos_T pos; | |
40 | + int slcb = listcmd_busy; | |
41 | ||
42 | pos = curwin->w_cursor; | |
43 | + listcmd_busy = TRUE; /* avoid that '' is changed */ | |
44 | if (findsent(c == ')' ? FORWARD : BACKWARD, 1L)) | |
45 | { | |
46 | pos_copy = curwin->w_cursor; | |
47 | posp = &pos_copy; | |
48 | } | |
49 | curwin->w_cursor = pos; | |
50 | + listcmd_busy = slcb; | |
51 | } | |
52 | #ifdef FEAT_VISUAL | |
53 | else if (c == '<' || c == '>') /* start/end of visual area */ | |
54 | *** ../vim-6.2.044/src/version.c Sun Jul 27 14:19:17 2003 | |
55 | --- src/version.c Sun Jul 27 14:21:02 2003 | |
56 | *************** | |
57 | *** 632,633 **** | |
58 | --- 632,635 ---- | |
59 | { /* Add new patch number below this line */ | |
60 | + /**/ | |
61 | + 45, | |
62 | /**/ | |
63 | ||
64 | -- | |
65 | Westheimer's Discovery: | |
66 | A couple of months in the laboratory can | |
67 | frequently save a couple of hours in the library. | |
68 | ||
69 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
70 | /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ | |
71 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
72 | \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// |