Mercurial > vim
comparison src/normal.c @ 21405:5324acb43fea v8.2.1253
patch 8.2.1253: CTRL-K in Insert mode gets <CursorHold> inserted
Commit: https://github.com/vim/vim/commit/b146e01a7e41bf5787a2b5ccc6c340ed6001f308
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 19 23:06:05 2020 +0200
patch 8.2.1253: CTRL-K in Insert mode gets <CursorHold> inserted
Problem: CTRL-K in Insert mode gets <CursorHold> inserted. (Roland
Puntaier)
Solution: Do not reset did_cursorhold, restore it. (closes #6447)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 19 Jul 2020 23:15:04 +0200 |
parents | e6a5a5ef4034 |
children | b530a433fe7d |
comparison
equal
deleted
inserted
replaced
21404:950ab917cd4d | 21405:5324acb43fea |
---|---|
497 static int old_mapped_len = 0; | 497 static int old_mapped_len = 0; |
498 int idx; | 498 int idx; |
499 #ifdef FEAT_EVAL | 499 #ifdef FEAT_EVAL |
500 int set_prevcount = FALSE; | 500 int set_prevcount = FALSE; |
501 #endif | 501 #endif |
502 int save_did_cursorhold = did_cursorhold; | |
502 | 503 |
503 CLEAR_FIELD(ca); // also resets ca.retval | 504 CLEAR_FIELD(ca); // also resets ca.retval |
504 ca.oap = oap; | 505 ca.oap = oap; |
505 | 506 |
506 // Use a count remembered from before entering an operator. After typing | 507 // Use a count remembered from before entering an operator. After typing |
1023 */ | 1024 */ |
1024 if (need_flushbuf) | 1025 if (need_flushbuf) |
1025 out_flush(); | 1026 out_flush(); |
1026 #endif | 1027 #endif |
1027 if (ca.cmdchar != K_IGNORE) | 1028 if (ca.cmdchar != K_IGNORE) |
1028 did_cursorhold = FALSE; | 1029 did_cursorhold = save_did_cursorhold; |
1029 | 1030 |
1030 State = NORMAL; | 1031 State = NORMAL; |
1031 | 1032 |
1032 if (ca.nchar == ESC) | 1033 if (ca.nchar == ESC) |
1033 { | 1034 { |