Skip to content

Commit

Permalink
Fix "Special Characters" palette bug
Browse files Browse the repository at this point in the history
It is again possible to insert text from the "Special Characters"
palette (broken by commit 8fbb13da74a1912839e9302ebc725df67619c9c0).
  • Loading branch information
b4winckler committed Oct 18, 2008
1 parent 49a52f9 commit 2cccddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MacVim/MMTextViewHelper.m
Expand Up @@ -172,7 +172,7 @@ - (void)insertText:(id)string
NSMutableData *data = [NSMutableData data];
int len = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
int flags = [event modifierFlags] & 0xffff0000U;
if ([event isARepeat])
if ([event type] == NSKeyDown && [event isARepeat])
flags |= 1;

[data appendBytes:&flags length:sizeof(int)];
Expand Down

0 comments on commit 2cccddd

Please sign in to comment.