Skip to content

Commit a0b18a9

Browse files
committed
Merge branch 'development' into fix/960
2 parents 5c70747 + fbb09ad commit a0b18a9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

External/Plugins/ASCompletion/Completion/ASComplete.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,13 +1008,16 @@ static private void HandleStructureCompletion(ScintillaControl Sci)
10081008
int line = Sci.LineFromPosition(position);
10091009
if (line == 0)
10101010
return;
1011-
string txt = Sci.GetLine(line-1).TrimEnd();
1011+
string txt = Sci.GetLine(line - 1).TrimEnd();
10121012
int style = Sci.BaseStyleAt(position);
10131013

1014+
// move closing brace to its own line and fix indentation
10141015
if (Sci.CurrentChar == '}')
10151016
{
1016-
Sci.DeleteForward();
1017-
AutoCloseBrace(Sci, line);
1017+
var openingBrace = Sci.SafeBraceMatch(position);
1018+
var openLine = openingBrace >= 0 ? Sci.LineFromPosition(openingBrace) : line - 1;
1019+
Sci.InsertText(Sci.CurrentPos, LineEndDetector.GetNewLineMarker(Sci.EOLMode));
1020+
Sci.SetLineIndentation(line + 1, Sci.GetLineIndentation(openLine));
10181021
}
10191022
// in comments
10201023
else if (PluginBase.Settings.CommentBlockStyle == CommentBlockStyle.Indented && txt.EndsWith("*/"))

PluginCore/PluginCore/DistroConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class DistroConfig
99
public const String DISTRIBUTION_HELP = "http://www.flashdevelop.org/wikidocs/";
1010
public const String DISTRIBUTION_VERSION = "http://www.flashdevelop.org/latest.txt";
1111
public const String DISTRIBUTION_ABOUT = "FlashDevelop logo, domain and the name are copyright of Mika Palmu.\r\nDevelopment: Mika Palmu, Philippe Elsass and all helpful contributors.";
12-
public const String DISTRIBUTION_COPYRIGHT = "FlashDevelop.org 2005-2015";
12+
public const String DISTRIBUTION_COPYRIGHT = "FlashDevelop.org 2005-2016";
1313
public const String DISTRIBUTION_COMPANY = "FlashDevelop.org";
1414
public const String DISTRIBUTION_RSS = "http://www.flashdevelop.org/community/rss.php?f=15";
1515
}

0 commit comments

Comments
 (0)