]>
Commit | Line | Data |
---|---|---|
0611be5f ER |
1 | To: vim_dev@googlegroups.com |
2 | Subject: Patch 7.3.105 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.3.105 | |
11 | Problem: Can't get the value of "b:changedtick" with getbufvar(). | |
12 | Solution: Make it work. (Christian Brabandt) | |
13 | Files: src/eval.c | |
14 | ||
15 | ||
16 | *** ../vim-7.3.104/src/eval.c 2011-01-17 20:08:03.000000000 +0100 | |
17 | --- src/eval.c 2011-01-22 01:10:42.000000000 +0100 | |
18 | *************** | |
19 | *** 10866,10871 **** | |
20 | --- 10866,10876 ---- | |
21 | ||
22 | if (*varname == '&') /* buffer-local-option */ | |
23 | get_option_tv(&varname, rettv, TRUE); | |
24 | + else if (STRCMP(varname, "changedtick") == 0) | |
25 | + { | |
26 | + rettv->v_type = VAR_NUMBER; | |
27 | + rettv->vval.v_number = curbuf->b_changedtick; | |
28 | + } | |
29 | else | |
30 | { | |
31 | if (*varname == NUL) | |
32 | *** ../vim-7.3.104/src/version.c 2011-01-22 00:58:15.000000000 +0100 | |
33 | --- src/version.c 2011-01-22 01:13:19.000000000 +0100 | |
34 | *************** | |
35 | *** 716,717 **** | |
36 | --- 716,719 ---- | |
37 | { /* Add new patch number below this line */ | |
38 | + /**/ | |
39 | + 105, | |
40 | /**/ | |
41 | ||
42 | -- | |
43 | hundred-and-one symptoms of being an internet addict: | |
44 | 133. You communicate with people on other continents more than you | |
45 | do with your own neighbors. | |
46 | ||
47 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
48 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
49 | \\\ an exciting new programming language -- http://www.Zimbu.org /// | |
50 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |