1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed cursor placement after OpenCodeBlock with 'spaces' indenting

This commit is contained in:
Brian Fiete 2022-08-25 13:32:41 -07:00
parent cb13198609
commit ae8ea6281d

View file

@ -2731,7 +2731,10 @@ namespace IDE.ui
InsertAtCursor(sb);
}
CursorTextPos -= indentCount + 2;
if (gApp.mSettings.mEditorSettings.mTabsOrSpaces == .Spaces)
CursorTextPos -= indentCount*mTabLength + 2;
else
CursorTextPos -= indentCount + 2;
CursorToLineEnd();
return true;
}