diff --git a/src/InputController.mm b/src/InputController.mm index 55cf023..efb9af5 100644 --- a/src/InputController.mm +++ b/src/InputController.mm @@ -194,7 +194,8 @@ - (void)commitComposition:(id)sender { if (commitWordWithSpace && text.length > 0) { char firstChar = [text characterAtIndex:0]; - if (![[NSCharacterSet decimalDigitCharacterSet] characterIsMember:firstChar]) { + char lastChar = [text characterAtIndex:text.length - 1]; + if (![[NSCharacterSet decimalDigitCharacterSet] characterIsMember:firstChar] && lastChar != '\'') { text = [NSString stringWithFormat:@"%@ ", text]; } }