comparison src/getchar.c @ 24588:826ba03d0d22 v8.2.2833

patch 8.2.2833: two key command cancelled by moving mouse when using popup Commit: https://github.com/vim/vim/commit/3a00659db740ebcf0be6153b47a5734eea4a18ba Author: Bram Moolenaar <Bram@vim.org> Date: Wed May 5 19:58:17 2021 +0200 patch 8.2.2833: two key command cancelled by moving mouse when using popup Problem: Two key command cancelled by moving mouse when using popup. (Sergey Vlasov) Solution: Ignore K_MOUSEMOVE in plain_vgetc().
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 May 2021 20:00:07 +0200
parents b545334ae654
children 3f9053c21765
comparison
equal deleted inserted replaced
24587:c41f3377f32f 24588:826ba03d0d22
1930 { 1930 {
1931 int c; 1931 int c;
1932 1932
1933 do 1933 do
1934 c = safe_vgetc(); 1934 c = safe_vgetc();
1935 while (c == K_IGNORE || c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR); 1935 while (c == K_IGNORE
1936 || c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR
1937 || c == K_MOUSEMOVE);
1936 1938
1937 if (c == K_PS) 1939 if (c == K_PS)
1938 // Only handle the first pasted character. Drop the rest, since we 1940 // Only handle the first pasted character. Drop the rest, since we
1939 // don't know what to do with it. 1941 // don't know what to do with it.
1940 c = bracketed_paste(PASTE_ONE_CHAR, FALSE, NULL); 1942 c = bracketed_paste(PASTE_ONE_CHAR, FALSE, NULL);