Mercurial > vim
annotate src/glbl_ime.h @ 22230:0bbc8be90207 v8.2.1664
patch 8.2.1664: memory leak when using :mkview with a terminal buffer
Commit: https://github.com/vim/vim/commit/c2c820563441499892359da949db3c8f7f16d109
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 11 22:10:22 2020 +0200
patch 8.2.1664: memory leak when using :mkview with a terminal buffer
Problem: Memory leak when using :mkview with a terminal buffer.
Solution: Don't use a hastab for :mkview. (Rob Pilling, closes https://github.com/vim/vim/issues/6935)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 11 Sep 2020 22:15:03 +0200 |
parents | 6e3dc2d630c2 |
children |
rev | line source |
---|---|
10042
4aead6a9b7a9
commit https://github.com/vim/vim/commit/edf3f97ae2af024708ebb4ac614227327033ca47
Christian Brabandt <cb@256bit.org>
parents:
378
diff
changeset
|
1 /* vi:set ts=8 sts=4 sw=4 noet: |
7 | 2 * |
3 * VIM - Vi IMproved by Bram Moolenaar | |
4 * | |
5 * Do ":help uganda" in Vim to read copying and usage conditions. | |
6 * Do ":help credits" in Vim to see a list of people who contributed. | |
7 */ | |
8 | |
9 #ifdef GLOBAL_IME | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
10042
diff
changeset
|
10 # ifndef _INC_GLOBAL_IME |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
10042
diff
changeset
|
11 # define _INC_GLOBAL_IME |
7 | 12 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
10042
diff
changeset
|
13 # ifdef __cplusplus |
7 | 14 extern "C" { |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
10042
diff
changeset
|
15 # endif |
7 | 16 void global_ime_init(ATOM, HWND); |
344 | 17 void global_ime_end(void); |
7 | 18 LRESULT WINAPI global_ime_DefWindowProc(HWND, UINT, WPARAM, LPARAM); |
19 BOOL WINAPI global_ime_TranslateMessage(CONST MSG *); | |
20 void WINAPI global_ime_set_position(POINT*); | |
21 void WINAPI global_ime_set_font(LOGFONT*); | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
10042
diff
changeset
|
22 # if 0 |
344 | 23 void WINAPI global_ime_status_evacuate(void); |
24 void WINAPI global_ime_status_restore(void); | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
10042
diff
changeset
|
25 # endif |
7 | 26 void WINAPI global_ime_set_status(int status); |
344 | 27 int WINAPI global_ime_get_status(void); |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
10042
diff
changeset
|
28 # ifdef __cplusplus |
7 | 29 } |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
10042
diff
changeset
|
30 # endif |
7 | 31 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
10042
diff
changeset
|
32 # endif // _INC_GLOBAL_IME |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
10042
diff
changeset
|
33 #endif // GLOBAL_IME |