ARCed.Scintilla.SnippetManager.PreviousSnippetRange C# (CSharp) Method

PreviousSnippetRange() public method

public PreviousSnippetRange ( ) : bool
return bool
        public bool PreviousSnippetRange()
        {
            //	Same as NextSnippetRange but going in the opposite direction
            if (!this._snippetLinks.IsActive || Scintilla.AutoComplete.IsActive)
                return false;

            SnippetLink sl = this._snippetLinks.PreviousActiveSnippetLink;
            if (sl != null)
            {
                while (sl.Ranges.Count == 0)
                {
                    this._snippetLinks.Remove(sl);
                    sl = this._snippetLinks.PreviousActiveSnippetLink;
                    if (sl == null)
                    {
                        Scintilla.Commands.StopProcessingCommands = true;
                        return true;
                    }
                }

                sl.Ranges[0].Select();
                Scintilla.Commands.StopProcessingCommands = true;
                return true;
            }

            return false;
        }