comparison src/edit.c @ 12716:351cf7c67bbe v8.0.1236

patch 8.0.1236: Mac features are confusing commit https://github.com/vim/vim/commit/d057301b1f28736f094affa17b190244ad56e8d9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 28 21:11:06 2017 +0200 patch 8.0.1236: Mac features are confusing Problem: Mac features are confusing. Solution: Make feature names more consistent, add "osxdarwin". Rename feature flags, cleanup Mac code. (Kazunobu Kuriyama, closes #2178)
author Christian Brabandt <cb@256bit.org>
date Sat, 28 Oct 2017 21:15:35 +0200
parents e769c912fcd9
children ebb4f6c93598
comparison
equal deleted inserted replaced
12715:279ec0abb4ac 12716:351cf7c67bbe
5975 * inserted with ins_str(), so as not to replace characters in replace 5975 * inserted with ins_str(), so as not to replace characters in replace
5976 * mode. 5976 * mode.
5977 * Only use mod_mask for special keys, to avoid things like <S-Space>, 5977 * Only use mod_mask for special keys, to avoid things like <S-Space>,
5978 * unless 'allow_modmask' is TRUE. 5978 * unless 'allow_modmask' is TRUE.
5979 */ 5979 */
5980 #ifdef MACOS 5980 #ifdef MACOS_X
5981 /* Command-key never produces a normal key */ 5981 /* Command-key never produces a normal key */
5982 if (mod_mask & MOD_MASK_CMD) 5982 if (mod_mask & MOD_MASK_CMD)
5983 allow_modmask = TRUE; 5983 allow_modmask = TRUE;
5984 #endif 5984 #endif
5985 if (IS_SPECIAL(c) || (mod_mask && allow_modmask)) 5985 if (IS_SPECIAL(c) || (mod_mask && allow_modmask))
8754 case K_KEND: 8754 case K_KEND:
8755 case K_PAGEUP: 8755 case K_PAGEUP:
8756 case K_KPAGEUP: 8756 case K_KPAGEUP:
8757 case K_PAGEDOWN: 8757 case K_PAGEDOWN:
8758 case K_KPAGEDOWN: 8758 case K_KPAGEDOWN:
8759 # ifdef MACOS 8759 # ifdef MACOS_X
8760 case K_LEFT: 8760 case K_LEFT:
8761 case K_RIGHT: 8761 case K_RIGHT:
8762 case K_UP: 8762 case K_UP:
8763 case K_DOWN: 8763 case K_DOWN:
8764 case K_END: 8764 case K_END: