Exemplo n.º 1
0
        private bool TryGetRecentWindow(int n, out IWpfTextView textView)
        {
            textView = null;
            var vimBufferOption = _vim.TryGetRecentBuffer(n);

            if (vimBufferOption.IsSome() && vimBufferOption.Value.TextView is IWpfTextView wpfTextView)
            {
                textView = wpfTextView;
            }
            return(false);
        }
Exemplo n.º 2
0
        private bool TryGetRecentWindow(int n, out IWpfTextView textView)
        {
            textView = null;
#if false
            // TODO: Enable when PR #2139 is merged.
            var vimBufferOption = _vim.TryGetRecentBuffer(i);
            if (vimBufferOption.HasValue && vimBufferOption.Value.TextView is IWpfTextView wpfTextView)
            {
                textView = wpfTextView;
            }
#endif
            return(false);
        }