Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit a70eb89

Browse files
committed
[[ Bug 20909 ]] Use autoformat preference for indent
This patch fixes a copy/paste error where the autocomplete option was being used to govern indent formatting.
1 parent 066e261 commit a70eb89

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Toolset/palettes/script editor/behaviors/revsecommoneditorbehavior.livecodescript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,10 +1680,10 @@ private command calculateReturnFormatting pTo, pFrom, pLine, pContinuationRequir
16801680
# If the preference is not to use formatting, just return the specification of the basic
16811681
# insertion of a return character.
16821682
-- allow environment with no dependencies
1683-
local tAutoComplete
1684-
put __GetPreference("editor,autocomplete", true) into tAutoComplete
1683+
local tAutoFormat
1684+
put __GetPreference("editor,autoformat", true) into tAutoFormat
16851685

1686-
if not tAutoComplete then
1686+
if not tAutoFormat then
16871687
put pFrom into rAt
16881688
put 0 into rLength
16891689
put tReturnString into rString

notes/bugfix-20909.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix formatting of indents in SE when autocomplete is false and autoformat is true

0 commit comments

Comments
 (0)