Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -1680,10 +1680,10 @@ private command calculateReturnFormatting pTo, pFrom, pLine, pContinuationRequir
# If the preference is not to use formatting, just return the specification of the basic
# insertion of a return character.
-- allow environment with no dependencies
local tAutoComplete
put __GetPreference("editor,autocomplete", true) into tAutoComplete
local tAutoFormat
put __GetPreference("editor,autoformat", true) into tAutoFormat

if not tAutoComplete then
if not tAutoFormat then
put pFrom into rAt
put 0 into rLength
put tReturnString into rString
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ private command buildEditMenu pContext
if revEnvironmentEditionProperty("autocomplete") then
put toggleMenuItem(tab & "Autocomplete", sePrefGet("editor,providercompletion")) & return after tEdit
end if
put toggleMenuItem(tab & "Autoformat", sePrefGet("editor,autoformat")) & return after tEdit

put "-" & return & \
"Preferences" after tEdit
Expand Down Expand Up @@ -477,6 +478,9 @@ private command handleEditMenuPick pItemName
case "Options|Autocomplete"
sePrefSet "editor,providercompletion", (not sePrefGet("editor,providercompletion"))
break
case "Options|Autoformat"
sePrefSet "editor,autoformat", (not sePrefGet("editor,autoformat"))
break
case "Preferences"
actionShowPreferences
break
Expand Down
1 change: 1 addition & 0 deletions notes/bugfix-20909.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fix formatting of indents in SE when autocomplete is false and autoformat is true