mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
ea772c675e
1 changed files with 10 additions and 4 deletions
|
@ -4090,10 +4090,16 @@ namespace IDE.ui
|
|||
}
|
||||
if (column > 0)
|
||||
{
|
||||
String tabStr = scope String();
|
||||
tabStr.Append('\t', column / gApp.mSettings.mEditorSettings.mTabSize);
|
||||
tabStr.Append(' ', column % gApp.mSettings.mEditorSettings.mTabSize);
|
||||
InsertAtCursor(tabStr);
|
||||
String indentationStr = scope String();
|
||||
switch (gApp.mSettings.mEditorSettings.mTabsOrSpaces)
|
||||
{
|
||||
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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue