Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2000-10-30 13:16:32 +0300
committerSimon Tatham <anakin@pobox.com>2000-10-30 13:16:32 +0300
commit21299d2c39297090a5d68a69a0b01bef7c15c697 (patch)
tree56a831d8c6e23473ebb457a5ab99c352278f479a /window.c
parent2cc663cafb1b81e810781150d2d2f4ab4f67aa66 (diff)
Reset compose state to zero when PuTTY window gains focus
[originally from svn r779]
Diffstat (limited to 'window.c')
-rw-r--r--window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/window.c b/window.c
index c1ae7e4f..315df81b 100644
--- a/window.c
+++ b/window.c
@@ -102,6 +102,8 @@ static char *window_name, *icon_name;
static Ldisc *real_ldisc;
+static int compose_state = 0;
+
void begin_session(void) {
ldisc = real_ldisc;
}
@@ -1363,6 +1365,7 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message,
has_focus = TRUE;
CreateCaret(hwnd, caretbm, 0, 0);
ShowCaret(hwnd);
+ compose_state = 0;
term_out();
term_update();
break;
@@ -1828,7 +1831,6 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam,
unsigned char * p = output;
static WORD keys[3];
- static int compose_state = 0;
static int compose_char = 0;
static WPARAM compose_key = 0;