Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/officecli/Handlers/Excel/ExcelHandler.Import.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ public string Import(string parentPath, string csvContent, char delimiter, bool
sheetView.InsertAt(pane, 0);
}

// Mark modified so Dispose flushes the import (the !Modified
// byte-preserving discard path would otherwise drop it).
Modified = true;
SaveWorksheet(worksheet);
return $"Imported {rows.Count} rows x {maxCols} cols into /{sheetName} starting at {startCell.ToUpperInvariant()}";
}
Expand Down