Skip to content

Commit a775a23

Browse files
committed
#2711 no-longer truncate binary columns whlie editing
1 parent cbf8095 commit a775a23

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: Source/SPTableContentDataSource.m

+6-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,12 @@ - (id)tableView:(SPCopyTable *)tableView objectValueForTableColumn:(NSTableColum
130130
fieldEditorCheckLock = &tableValuesLock;
131131
}
132132

133-
// Always retrieve the short string representation, truncating the value where necessary
134-
return [value shortStringRepresentationUsingEncoding:[mySQLConnection stringEncoding]];
133+
// Unless we're editing, always retrieve the short string representation, truncating the value where necessary
134+
if ([tableView editedColumn] == (NSInteger)columnIndex || [tableView editedRow] == rowIndex) {
135+
return [value stringRepresentationUsingEncoding:[mySQLConnection stringEncoding]];
136+
} else {
137+
return [value shortStringRepresentationUsingEncoding:[mySQLConnection stringEncoding]];
138+
}
135139
}
136140

137141
if ([value isSPNotLoaded]) {

0 commit comments

Comments
 (0)