Skip to content
Snippets Groups Projects
Commit 9977ec5d authored by George Nachman's avatar George Nachman
Browse files

Initial text automatically gets a newline sent, so remove the one that used to...

Initial text automatically gets a newline sent, so remove the one that used to be added when executing a script.

Issue 6067
parent 2c73a1d6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -588,9 +588,9 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
if (filename) {
NSString *initialText = bookmark[KEY_INITIAL_TEXT];
if (initialText && ![iTermAdvancedSettingsModel openFileOverridesSendText]) {
initialText = [initialText stringByAppendingFormat:@"\n%@; exit\n", filename];
initialText = [initialText stringByAppendingFormat:@"\n%@; exit", filename];
} else {
initialText = [NSString stringWithFormat:@"%@; exit\n", filename];
initialText = [NSString stringWithFormat:@"%@; exit", filename];
}
bookmark[KEY_INITIAL_TEXT] = initialText;
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment