mirror of
https://github.com/PowerShell/PSReadLine
synced 2026-06-08 12:12:13 +00:00
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
/********************************************************************++
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
--********************************************************************/
|
|
|
|
using System;
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|