Esempio n. 1
0
 public HistorySessionTest()
 {
     _client = new Client()
     {
         HistoryList = new HistoryList(), RegisterMap = Vim.RegisterMap
     };
     _historySession = HistoryUtil.CreateHistorySession(_client, 0, "", null);
     _bindData       = _historySession.CreateBindDataStorage().CreateMappedBindData();
 }
Esempio n. 2
0
        public void Process(KeyInput keyInput, bool wasMapped = false)
        {
            var keyInputData = KeyInputData.Create(keyInput, wasMapped);
            var result       = _bindData.MappedBindFunction.Invoke(keyInputData);

            _bindData = result.IsNeedMoreInput
                ? ((MappedBindResult <int> .NeedMoreInput)result).MappedBindData
                : null;
        }
Esempio n. 3
0
        public HistorySessionTest()
        {
            _client = new Client()
            {
                HistoryList = new HistoryList(), RegisterMap = Vim.RegisterMap
            };

            var vimBuffer = CreateVimBuffer();

            _historySession = HistoryUtil.CreateHistorySession(
                _client,
                0,
                EditableCommand.Empty,
                vimBuffer.VimTextBuffer.LocalAbbreviationMap,
                vimBuffer.MotionUtil);
            _bindData = _historySession.CreateBindDataStorage().CreateMappedBindData();
        }