示例#1
0
        internal void DoAutoComplete()
        {
            var input_box = InputBox;
            var info      = _GetAutocompleteInfo(_Parser.Parse(CurrentCommandText, lenient: true));

            input_box.MoveCursor(info.LastCharIndex, info.FirstCharIndex - 1); // CursorIndex is 0-indexed
        }
示例#2
0
文件: History.cs 项目: dadebert/Semi
        public string Execute(int index)
        {
            if (index < 0 || index >= Entries.Count)
            {
                throw new Exception("Tried to execute command from history at nonexistant index.");
            }

            return(_Executor.ExecuteCommand(_Parser.Parse(Entries[index]), index));
        }