void Scintilla_CharAdded(object sender, CharAddedEventArgs e)
{
if (e.Ch == '\n')
{
int pos = scintillaWrapper.CurrentPos;
Line line = scintillaWrapper.Lines.FromPosition(pos);
int indent = line.Previous.Indentation;
if (indent > 0)
{
line.Indentation = indent;
scintillaWrapper.GoTo.Position(pos + indent);
}
}
else
{
if (!scintillaWrapper.AutoComplete.IsActive)
{
//doShowAutocomplete = true;
}
}
}