summaryrefslogtreecommitdiffstats
path: root/patches/source/vim/patches/7.4.164
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2018-05-25 23:29:36 +0000
committer Eric Hameleers <alien@slackware.com>2018-05-31 15:18:32 -0700
commit8ff4f2f51a6cf07fc33742ce3bee81328896e49b (patch)
tree4a166b8389404be98a6c098babaa444e2dec8f48 /patches/source/vim/patches/7.4.164
parent76fc4757ac91ac7947a01fb7b53dddf9a78a01d1 (diff)
downloadcurrent-14.1.tar.gz
current-14.1.tar.xz
Fri May 25 23:29:36 UTC 201814.1
patches/packages/glibc-zoneinfo-2018e-noarch-2_slack14.1.txz: Rebuilt. Handle removal of US/Pacific-New timezone. If we see that the machine is using this, it will be automatically switched to US/Pacific.
Diffstat (limited to 'patches/source/vim/patches/7.4.164')
-rw-r--r--patches/source/vim/patches/7.4.16478
1 files changed, 78 insertions, 0 deletions
diff --git a/patches/source/vim/patches/7.4.164 b/patches/source/vim/patches/7.4.164
new file mode 100644
index 000000000..b35debadf
--- /dev/null
+++ b/patches/source/vim/patches/7.4.164
@@ -0,0 +1,78 @@
+To: vim_dev@googlegroups.com
+Subject: Patch 7.4.164
+Fcc: outbox
+From: Bram Moolenaar <Bram@moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.4.164 (after 7.4.163)
+Problem: Problem with event handling on Windows 8.
+Solution: Ignore duplicate WINDOW_BUFFER_SIZE_EVENTs. (Nobuhiro Takasaki)
+Files: src/os_win32.c
+
+
+*** ../vim-7.4.163/src/os_win32.c 2014-02-05 13:36:50.846082213 +0100
+--- src/os_win32.c 2014-02-05 14:01:13.350104623 +0100
+***************
+*** 253,258 ****
+--- 253,261 ----
+ static DWORD s_dwIndex = 0;
+ static DWORD s_dwMax = 0;
+ DWORD dwEvents;
++ int head;
++ int tail;
++ int i;
+
+ if (!win8_or_later)
+ {
+***************
+*** 274,280 ****
+--- 277,305 ----
+ *lpEvents = 0;
+ return TRUE;
+ }
++
++ if (s_dwMax > 1)
++ {
++ head = 0;
++ tail = s_dwMax - 1;
++ while (head != tail)
++ {
++ if (s_irCache[head].EventType == WINDOW_BUFFER_SIZE_EVENT
++ && s_irCache[head + 1].EventType
++ == WINDOW_BUFFER_SIZE_EVENT)
++ {
++ /* Remove duplicate event to avoid flicker. */
++ for (i = head; i < tail; ++i)
++ s_irCache[i] = s_irCache[i + 1];
++ --tail;
++ continue;
++ }
++ head++;
++ }
++ s_dwMax = tail + 1;
++ }
+ }
++
+ *lpBuffer = s_irCache[s_dwIndex];
+ if (nLength != -1 && ++s_dwIndex >= s_dwMax)
+ s_dwMax = 0;
+*** ../vim-7.4.163/src/version.c 2014-02-05 13:36:50.850082213 +0100
+--- src/version.c 2014-02-05 13:54:15.570098222 +0100
+***************
+*** 740,741 ****
+--- 740,743 ----
+ { /* Add new patch number below this line */
++ /**/
++ 164,
+ /**/
+
+--
+XML is a nice language for computers. Not for humans.
+
+ /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
+/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\ an exciting new programming language -- http://www.Zimbu.org ///
+ \\\ help me help AIDS victims -- http://ICCF-Holland.org ///