aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-12-30 00:10:26 -0500
committerJustin M. Keyes <justinkz@gmail.com>2014-12-30 00:10:26 -0500
commita31bcfb98afbe4d845911b4d90255c18769f197a (patch)
tree58651f5390fa7b3ae968a2c2978fde7c35f91ef4 /src/nvim/getchar.c
parent13d950f6edf5c1d3cc28059bfe497df3c677d45a (diff)
parente27460b60cb3d725ecfe8ba34438642fdb174280 (diff)
downloadrneovim-a31bcfb98afbe4d845911b4d90255c18769f197a.tar.gz
rneovim-a31bcfb98afbe4d845911b4d90255c18769f197a.tar.bz2
rneovim-a31bcfb98afbe4d845911b4d90255c18769f197a.zip
Merge pull request #1742 from fwalch/vim-7.4.552
vim-patch:7.4.552
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index d0eebf8fea..e12601e4c9 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -1775,7 +1775,7 @@ static int vgetorpeek(int advance)
if (c1 == K_SPECIAL)
nolmaplen = 2;
else {
- LANGMAP_ADJUST(c1, TRUE);
+ LANGMAP_ADJUST(c1, (State & INSERT) == 0);
nolmaplen = 0;
}
/* First try buffer-local mappings. */