]> git.pld-linux.org Git - packages/vim.git/blame - 7.1.008
- updated to 7.1.326
[packages/vim.git] / 7.1.008
CommitLineData
ad28a8ff
AG
1To: vim-dev@vim.org
2Subject: patch 7.1.008 (correction
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Oops, forgot the src/version.c change.
11
12Patch 7.1.008
13Problem: getfsize() returns a negative number for very big files.
14Solution: Check for overflow and return -2.
15Files: runtime/doc/eval.txt, src/eval.c
16
17
18*** ../vim-7.1.007/runtime/doc/eval.txt Sat May 12 16:38:23 2007
19--- runtime/doc/eval.txt Sat Jun 9 15:48:40 2007
20***************
21*** 1,4 ****
22! *eval.txt* For Vim version 7.1. Last change: 2007 May 11
23
24
25 VIM REFERENCE MANUAL by Bram Moolenaar
26--- 1,4 ----
27! *eval.txt* For Vim version 7.1. Last change: 2007 Jun 09
28
29
30 VIM REFERENCE MANUAL by Bram Moolenaar
31***************
32*** 2824,2829 ****
33--- 2824,2831 ----
34 given file {fname}.
35 If {fname} is a directory, 0 is returned.
36 If the file {fname} can't be found, -1 is returned.
37+ If the size of {fname} is too big to fit in a Number then -2
38+ is returned.
39
40 getfontname([{name}]) *getfontname()*
41 Without an argument returns the name of the normal font being
42*** ../vim-7.1.007/src/eval.c Thu May 10 21:30:00 2007
43--- src/eval.c Sat Jun 9 15:46:46 2007
44***************
45*** 10136,10142 ****
46--- 10136,10148 ----
47 if (mch_isdir(fname))
48 rettv->vval.v_number = 0;
49 else
50+ {
51 rettv->vval.v_number = (varnumber_T)st.st_size;
52+
53+ /* non-perfect check for overflow */
54+ if ((off_t)rettv->vval.v_number != (off_t)st.st_size)
55+ rettv->vval.v_number = -2;
56+ }
57 }
58 else
59 rettv->vval.v_number = -1;
60*** ../vim-7.1.007/src/version.c Tue Jun 19 16:33:53 2007
61--- src/version.c Tue Jun 19 17:30:50 2007
62***************
63*** 668,669 ****
64--- 668,671 ----
65 { /* Add new patch number below this line */
66+ /**/
67+ 8,
68 /**/
69
70
71--
72ZOOT: I'm afraid our life must seem very dull and quiet compared to yours.
73 We are but eightscore young blondes, all between sixteen and
74 nineteen-and-a-half, cut off in this castle, with no one to protect us.
75 Oooh. It is a lonely life ... bathing ... dressing ... undressing ...
76 making exciting underwear....
77 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
78
79 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
80/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
81\\\ download, build and distribute -- http://www.A-A-P.org ///
82 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.031979 seconds and 4 git commands to generate.