diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-10-05 12:02:13 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-10-26 10:52:01 -0300 |
commit | 350ffc63dbd26e17c389b35d4b8b36e4ef362137 (patch) | |
tree | e9294c3189e45f77649447eada66a544810cb861 /src/nvim/getchar.c | |
parent | 32594a33a3d815b0da6634cb41692e412276cb91 (diff) | |
download | rneovim-350ffc63dbd26e17c389b35d4b8b36e4ef362137.tar.gz rneovim-350ffc63dbd26e17c389b35d4b8b36e4ef362137.tar.bz2 rneovim-350ffc63dbd26e17c389b35d4b8b36e4ef362137.zip |
main: Refactor normal_enter to call `os_inchar` directly
This makes it impossible for K_EVENT to interfere with mappings, but it also
disables processing of events while in the middle of a mapping (Though this will
be fixed later as this refactoring progresses).
`may_sync_undo` is now called when K_EVENT is received. This is necessary to
correctly update undo entry lists before executing some action.
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 990d0fb8e2..b77a030158 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -1131,7 +1131,7 @@ static void gotchars(char_u *chars, int len) * - While reading a script file. * - When no_u_sync is non-zero. */ -static void may_sync_undo(void) +void may_sync_undo(void) { if ((!(State & (INSERT + CMDLINE)) || arrow_used) && scriptin[curscript] == NULL) |