Exemplo n.º 1
0
        public static BindResult <SearchResult> DoSearch(this IIncrementalSearch search, string text, Path path = null, bool enter = true)
        {
            path = path ?? Path.Forward;
            var result = search.Begin(path).Run(text);

            return(enter
                ? result.Run(VimKey.Enter)
                : result);
        }
Exemplo n.º 2
0
 private void ProcessWithEnter(string value)
 {
     var result = _search.Begin(Path.Forward).Run(value).Run(VimKey.Enter);
     Assert.True(result.IsComplete);
 }