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

Fix bug where commas in the number of scrollback lines confuses intValue

parent 8c8bd8c5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3371,7 +3371,7 @@ static NSString * const kRebuildColorPresetsMenuNotification = @"kRebuildColorPr
[self _updateLogDirWarning];
[self _updatePrefsDirWarning];
[newDict setObject:[NSNumber numberWithUnsignedInt:[[characterEncoding selectedItem] tag]] forKey:KEY_CHARACTER_ENCODING];
[newDict setObject:[NSNumber numberWithInt:[scrollbackLines intValue]] forKey:KEY_SCROLLBACK_LINES];
[newDict setObject:[NSNumber numberWithInt:[[[scrollbackLines stringValue] stringByReplacingOccurrencesOfString:@"," withString:@""] intValue]] forKey:KEY_SCROLLBACK_LINES];
[newDict setObject:[NSNumber numberWithBool:([unlimitedScrollback state]==NSOnState)] forKey:KEY_UNLIMITED_SCROLLBACK];
[scrollbackLines setEnabled:[unlimitedScrollback state]==NSOffState];
if ([unlimitedScrollback state] == NSOnState) {
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