Skip to content

Commit

Permalink
Merge pull request #1350 from Sequel-Ace/only-check-for-newlines-in-N…
Browse files Browse the repository at this point in the history
…SStrings
  • Loading branch information
Kaspik committed Jan 12, 2022
2 parents 8e17308 + 24a3dc2 commit 2f33050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Views/TableViews/SPCopyTable.m
Expand Up @@ -1299,7 +1299,7 @@ - (BOOL)shouldUseFieldEditorForRow:(NSUInteger)rowIndex column:(NSUInteger)colIn
}

//Check for new lines
if (editMultiLineInSheet && [cellValue rangeOfCharacterFromSet:[NSCharacterSet newlineCharacterSet] options:NSLiteralSearch].location != NSNotFound) {
if (editMultiLineInSheet && [cellValue isKindOfClass:[NSString class]] && [cellValue rangeOfCharacterFromSet:[NSCharacterSet newlineCharacterSet] options:NSLiteralSearch].location != NSNotFound) {
return YES;
}

Expand Down

0 comments on commit 2f33050

Please sign in to comment.