1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
To: vim_dev@googlegroups.com
Subject: Patch 7.3.382
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.3.382 (after 7.3.376)
Problem: IME characters are inserted twice.
Solution: Do not call DefWindowProc() if the event was handled. (Yasuhiro
Matsumoto)
Files: src/gui_w32.c
*** ../vim-7.3.381/src/gui_w32.c 2011-12-14 15:23:53.000000000 +0100
--- src/gui_w32.c 2011-12-15 21:50:51.000000000 +0100
***************
*** 798,804 ****
if (pt.y < rect.top)
{
show_tabline_popup_menu();
! return 0;
}
}
return MyWindowProc(hwnd, uMsg, wParam, lParam);
--- 798,804 ----
if (pt.y < rect.top)
{
show_tabline_popup_menu();
! return 0L;
}
}
return MyWindowProc(hwnd, uMsg, wParam, lParam);
***************
*** 828,834 ****
--- 828,837 ----
case WM_ENDSESSION:
if (wParam) /* system only really goes down when wParam is TRUE */
+ {
_OnEndSession();
+ return 0L;
+ }
break;
case WM_CHAR:
***************
*** 866,872 ****
* are received, mouse pointer remains hidden. */
return MyWindowProc(hwnd, uMsg, wParam, lParam);
#else
! return 0;
#endif
case WM_SIZING: /* HANDLE_MSG doesn't seem to handle this one */
--- 869,875 ----
* are received, mouse pointer remains hidden. */
return MyWindowProc(hwnd, uMsg, wParam, lParam);
#else
! return 0L;
#endif
case WM_SIZING: /* HANDLE_MSG doesn't seem to handle this one */
***************
*** 874,880 ****
case WM_MOUSEWHEEL:
_OnMouseWheel(hwnd, HIWORD(wParam));
! break;
/* Notification for change in SystemParametersInfo() */
case WM_SETTINGCHANGE:
--- 877,883 ----
case WM_MOUSEWHEEL:
_OnMouseWheel(hwnd, HIWORD(wParam));
! return 0L;
/* Notification for change in SystemParametersInfo() */
case WM_SETTINGCHANGE:
***************
*** 987,999 ****
--- 990,1008 ----
case TCN_SELCHANGE:
if (gui_mch_showing_tabline()
&& ((LPNMHDR)lParam)->hwndFrom == s_tabhwnd)
+ {
send_tabline_event(TabCtrl_GetCurSel(s_tabhwnd) + 1);
+ return 0L;
+ }
break;
case NM_RCLICK:
if (gui_mch_showing_tabline()
&& ((LPNMHDR)lParam)->hwndFrom == s_tabhwnd)
+ {
show_tabline_popup_menu();
+ return 0L;
+ }
break;
# endif
default:
***************
*** 1037,1042 ****
--- 1046,1052 ----
out_flush();
did_menu_tip = TRUE;
}
+ return 0L;
}
break;
#endif
***************
*** 1079,1096 ****
case WM_IME_NOTIFY:
if (!_OnImeNotify(hwnd, (DWORD)wParam, (DWORD)lParam))
return MyWindowProc(hwnd, uMsg, wParam, lParam);
! break;
case WM_IME_COMPOSITION:
if (!_OnImeComposition(hwnd, wParam, lParam))
return MyWindowProc(hwnd, uMsg, wParam, lParam);
! break;
#endif
default:
if (uMsg == msh_msgmousewheel && msh_msgmousewheel != 0)
{ /* handle MSH_MOUSEWHEEL messages for Intellimouse */
_OnMouseWheel(hwnd, HIWORD(wParam));
! break;
}
#ifdef MSWIN_FIND_REPLACE
else if (uMsg == s_findrep_msg && s_findrep_msg != 0)
--- 1089,1107 ----
case WM_IME_NOTIFY:
if (!_OnImeNotify(hwnd, (DWORD)wParam, (DWORD)lParam))
return MyWindowProc(hwnd, uMsg, wParam, lParam);
! return 1L;
!
case WM_IME_COMPOSITION:
if (!_OnImeComposition(hwnd, wParam, lParam))
return MyWindowProc(hwnd, uMsg, wParam, lParam);
! return 1L;
#endif
default:
if (uMsg == msh_msgmousewheel && msh_msgmousewheel != 0)
{ /* handle MSH_MOUSEWHEEL messages for Intellimouse */
_OnMouseWheel(hwnd, HIWORD(wParam));
! return 0L;
}
#ifdef MSWIN_FIND_REPLACE
else if (uMsg == s_findrep_msg && s_findrep_msg != 0)
*** ../vim-7.3.381/src/version.c 2011-12-14 20:51:19.000000000 +0100
--- src/version.c 2011-12-15 21:48:49.000000000 +0100
***************
*** 716,717 ****
--- 716,719 ----
{ /* Add new patch number below this line */
+ /**/
+ 382,
/**/
--
Even got a Datapoint 3600(?) with a DD50 connector instead of the
usual DB25... what a nightmare trying to figure out the pinout
for *that* with no spex...
/// 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 ///
|