AGS.Plugin.Lua.LuaScriptEditPane.Scintilla_CharAdded C# (CSharp) Метод

Scintilla_CharAdded() публичный Метод

public Scintilla_CharAdded ( object sender, ScintillaNet.CharAddedEventArgs e ) : void
sender object
e ScintillaNet.CharAddedEventArgs
Результат void
        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;
                }
            }
        }