Skip to content

Commit 037c17b

Browse files
committed
Fix MMBackend to compile with new Vim modifier key functions
1 parent 7089f42 commit 037c17b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MacVim/MMBackend.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,7 +2283,7 @@ - (BOOL)handleMacMetaKey:(int)ikey modifiers:(int)mods
22832283
mods &= ~MOD_MASK_SHIFT;
22842284

22852285
// Interpret the ALT key as making the key META, include SHIFT, etc.
2286-
ch = extract_modifiers(ch, &mods);
2286+
ch = extract_modifiers(ch, &mods, TRUE, NULL);
22872287
if (ch == CSI)
22882288
ch = K_CSI;
22892289

@@ -3189,7 +3189,7 @@ - (void)addInput:(NSString *)input
31893189
char_u *ptr = NULL;
31903190
char_u *cpo_save = p_cpo;
31913191
p_cpo = (char_u *)"Bk";
3192-
char_u *str = replace_termcodes((char_u *)string, &ptr, FALSE, TRUE, FALSE);
3192+
char_u *str = replace_termcodes((char_u *)string, &ptr, REPTERM_DO_LT, NULL);
31933193
p_cpo = cpo_save;
31943194

31953195
if (*ptr != NUL) /* trailing CTRL-V results in nothing */

0 commit comments

Comments
 (0)