We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 321fbb2 commit 94f72deCopy full SHA for 94f72de
1 file changed
XcodeKit/XcodeKit.m
@@ -139,10 +139,11 @@ -(void)duplicateSelection
139
[codeEditor insertText:copy];
140
}
141
else {
142
- NSString *lineContent = [codeEditor.textStorage.string substringWithRange:currentLineRange];
+ NSString *lineContent = [NSString stringWithFormat:@"%@", [codeEditor.textStorage.string substringWithRange:currentLineRange]];
143
144
[codeEditor setSelectedRange:NSMakeRange(currentLineRange.location + currentLineRange.length, 0)];
145
[codeEditor insertText:lineContent];
146
+ [codeEditor setSelectedRange:NSMakeRange(currentLineRange.location - 1, 0)];
147
148
149
0 commit comments