]>
Commit | Line | Data |
---|---|---|
eb0ac1ae AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.132 (extra) | |
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.132 (extra) | |
11 | Problem: Win32: console version doesn't work on latest Windows Server 2003. | |
12 | Solution: Copy 12000 instead of 15000 cells at a time to avoid running out | |
13 | of memory. | |
14 | Files: src/os_win32.c | |
15 | ||
16 | ||
17 | *** ../vim-6.2.131/src/os_win32.c Sun Oct 26 20:00:32 2003 | |
18 | --- src/os_win32.c Sat Oct 25 13:14:26 2003 | |
19 | *************** | |
20 | *** 1679,1693 **** | |
21 | * We will now copy the console screen buffer into our buffer. | |
22 | * ReadConsoleOutput() seems to be limited as far as how much you | |
23 | * can read at a time. Empirically, this number seems to be about | |
24 | ! * 15000 cells (rows * columns). Start at position (0, 0) and copy | |
25 | * in chunks until it is all copied. The chunks will all have the | |
26 | * same horizontal characteristics, so initialize them now. The | |
27 | ! * height of each chunk will be (15000 / width). | |
28 | */ | |
29 | BufferCoord.X = 0; | |
30 | ReadRegion.Left = 0; | |
31 | ReadRegion.Right = cb->Info.dwSize.X - 1; | |
32 | ! Y_incr = 15000 / cb->Info.dwSize.X; | |
33 | for (Y = 0; Y < cb->BufferSize.Y; Y += Y_incr) | |
34 | { | |
35 | /* | |
36 | --- 1679,1693 ---- | |
37 | * We will now copy the console screen buffer into our buffer. | |
38 | * ReadConsoleOutput() seems to be limited as far as how much you | |
39 | * can read at a time. Empirically, this number seems to be about | |
40 | ! * 12000 cells (rows * columns). Start at position (0, 0) and copy | |
41 | * in chunks until it is all copied. The chunks will all have the | |
42 | * same horizontal characteristics, so initialize them now. The | |
43 | ! * height of each chunk will be (12000 / width). | |
44 | */ | |
45 | BufferCoord.X = 0; | |
46 | ReadRegion.Left = 0; | |
47 | ReadRegion.Right = cb->Info.dwSize.X - 1; | |
48 | ! Y_incr = 12000 / cb->Info.dwSize.X; | |
49 | for (Y = 0; Y < cb->BufferSize.Y; Y += Y_incr) | |
50 | { | |
51 | /* | |
52 | *** ../vim-6.2.131/src/version.c Sun Oct 26 20:11:34 2003 | |
53 | --- src/version.c Sun Oct 26 20:13:44 2003 | |
54 | *************** | |
55 | *** 639,640 **** | |
56 | --- 639,642 ---- | |
57 | { /* Add new patch number below this line */ | |
58 | + /**/ | |
59 | + 132, | |
60 | /**/ | |
61 | ||
62 | -- | |
63 | Seen on the back of a biker's vest: If you can read this, my wife fell off. | |
64 | ||
65 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
66 | /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ | |
67 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
68 | \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// |