summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-01-14 16:08:32 +0100
committerBram Moolenaar <Bram@vim.org>2015-01-14 16:08:32 +0100
commit5000869712f799d9ca25c0e45dc21d332edae5f4 (patch)
tree288d15c04fc8b4ded049d4c36d08bb51b9852512 /src/ui.c
parent84c8e5ab9cfb6826e880e8ae062ff3347bb6909e (diff)
downloadvim-git-5000869712f799d9ca25c0e45dc21d332edae5f4.tar.gz
updated for version 7.4.573v7.4.573
Problem: Mapping CTRL-C in Visual mode doesn't work. (Ingo Karkat) Solution: Call get_real_state() instead of using State directly.
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index 6fc5bde21..59794829d 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -180,7 +180,7 @@ ui_inchar(buf, maxlen, wtime, tb_change_cnt)
/* ... there is no need for CTRL-C to interrupt something, don't let
* it set got_int when it was mapped. */
- if ((mapped_ctrl_c | curbuf->b_mapped_ctrl_c) & State)
+ if ((mapped_ctrl_c | curbuf->b_mapped_ctrl_c) & get_real_state())
ctrl_c_interrupts = FALSE;
}