forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCompletion.vi.cs
More file actions
43 lines (40 loc) · 1.36 KB
/
Copy pathCompletion.vi.cs
File metadata and controls
43 lines (40 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
using System.Text;
namespace Microsoft.PowerShell
{
public partial class PSConsoleReadLine
{
/// <summary>
/// Ends the current edit group, if needed, and invokes TabCompleteNext.
/// </summary>
public static void ViTabCompleteNext(ConsoleKeyInfo? key = null, object arg = null)
{
if (_singleton._editGroupStart >= 0)
{
_singleton._groupUndoHelper.EndGroup();
}
TabCompleteNext(key, arg);
}
/// <summary>
/// Ends the current edit group, if needed, and invokes TabCompletePrevious.
/// </summary>
public static void ViTabCompletePrevious(ConsoleKeyInfo? key = null, object arg = null)
{
if (_singleton._editGroupStart >= 0)
{
_singleton._groupUndoHelper.EndGroup();
}
TabCompletePrevious(key, arg);
}
}
}