1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-11 12:54:15 +02:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
Brian Fiete 2024-12-02 14:34:57 -05:00
commit ea772c675e

View file

@ -4090,10 +4090,16 @@ namespace IDE.ui
} }
if (column > 0) if (column > 0)
{ {
String tabStr = scope String(); String indentationStr = scope String();
tabStr.Append('\t', column / gApp.mSettings.mEditorSettings.mTabSize); switch (gApp.mSettings.mEditorSettings.mTabsOrSpaces)
tabStr.Append(' ', column % gApp.mSettings.mEditorSettings.mTabSize); {
InsertAtCursor(tabStr); case .Spaces:
indentationStr.Append(' ', column);
case .Tabs:
indentationStr.Append('\t', column / gApp.mSettings.mEditorSettings.mTabSize);
indentationStr.Append(' ', column % gApp.mSettings.mEditorSettings.mTabSize);
}
InsertAtCursor(indentationStr);
} }
// Insert extra blank line if we're breaking between a { and a } // Insert extra blank line if we're breaking between a { and a }