diff options
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index e6c3ec5..73adf8a 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -28,11 +28,12 @@ CopyStrings(void *Dest, void *Data) } static uint16 -String_AddToFile(memory *Memory, char *Char) +String_AddToFile(memory *Memory, char *Char, bool32 NoUndo) { uint16 FileIndex = Memory_Block_AllocateNew(Memory, F_Strings); block_string *String = (block_string *)Memory_Block_AddressAtIndex(Memory, F_Strings, FileIndex, 0); - History_Action_Block_Swap(Memory, F_Strings, String); + if (NoUndo) + History_Action_Block_Swap(Memory, F_Strings, String); String->Occupied = 1; uint16 i = 0; while (Char[i] != '\0') { |