From 56d148e9f44b16592451f5e76e0e79315be59bc2 Mon Sep 17 00:00:00 2001 From: Michael Niksa Date: Fri, 17 Sep 2021 15:31:43 -0700 Subject: [PATCH] code format! --- src/host/CommandListPopup.cpp | 12 ++++++------ src/host/VtApiRoutines.cpp | 6 ++---- src/host/VtIo.cpp | 2 +- src/host/popup.cpp | 6 +++--- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/host/CommandListPopup.cpp b/src/host/CommandListPopup.cpp index 5d049ccdd..7cdc44eb0 100644 --- a/src/host/CommandListPopup.cpp +++ b/src/host/CommandListPopup.cpp @@ -380,9 +380,9 @@ void CommandListPopup::_drawList() WriteCoord.X = _region.Left + 1i16; LOG_IF_FAILED(api->WriteConsoleOutputCharacterAImpl(_screenInfo, - { CommandNumberPtr, CommandNumberLength }, - WriteCoord, - CommandNumberLength)); + { CommandNumberPtr, CommandNumberLength }, + WriteCoord, + CommandNumberLength)); // write command to screen auto command = _history.GetNth(i); @@ -418,9 +418,9 @@ void CommandListPopup::_drawList() WriteCoord.X = gsl::narrow(WriteCoord.X + CommandNumberLength); size_t used; LOG_IF_FAILED(api->WriteConsoleOutputCharacterWImpl(_screenInfo, - { command.data(), lStringLength }, - WriteCoord, - used)); + { command.data(), lStringLength }, + WriteCoord, + used)); // write attributes to screen if (i == _currentCommand) diff --git a/src/host/VtApiRoutines.cpp b/src/host/VtApiRoutines.cpp index 15a5da2cb..3c6c354b6 100644 --- a/src/host/VtApiRoutines.cpp +++ b/src/host/VtApiRoutines.cpp @@ -189,7 +189,6 @@ void VtApiRoutines::GetConsoleOutputModeImpl(SCREEN_INFORMATION& context, const DWORD controlWakeupMask, DWORD& controlKeyState) noexcept { - const auto hr = m_pUsualRoutines->ReadConsoleWImpl(context, buffer, written, waiter, initialData, exeName, readHandleState, clientHandle, controlWakeupMask, controlKeyState); // If we're about to tell the caller to wait, let's synchronize the cursor we have with what // the terminal is presenting in case there's a cooked read going on. @@ -201,7 +200,6 @@ void VtApiRoutines::GetConsoleOutputModeImpl(SCREEN_INFORMATION& context, (void)m_pVtEngine->RequestCursor(); } return hr; - } [[nodiscard]] HRESULT VtApiRoutines::WriteConsoleAImpl(IConsoleOutputObject& context, @@ -485,8 +483,8 @@ void VtApiRoutines::GetLargestConsoleWindowSizeImpl(const SCREEN_INFORMATION& co } extern HRESULT _ConvertCellsToWInplace(const UINT codepage, - gsl::span buffer, - const Viewport& rectangle) noexcept; + gsl::span buffer, + const Viewport& rectangle) noexcept; [[nodiscard]] HRESULT VtApiRoutines::WriteConsoleOutputAImpl(SCREEN_INFORMATION& context, gsl::span buffer, diff --git a/src/host/VtIo.cpp b/src/host/VtIo.cpp index bc0f8ab76..a3c849801 100644 --- a/src/host/VtIo.cpp +++ b/src/host/VtIo.cpp @@ -160,7 +160,7 @@ VtIo::VtIo() : case VtIoMode::XTERM_256: { auto xterm256Engine = std::make_unique(std::move(_hOutput), - initialViewport); + initialViewport); if (_passthroughMode) { auto vtapi = new VtApiRoutines(); diff --git a/src/host/popup.cpp b/src/host/popup.cpp index 68c2dbd98..48d598e94 100644 --- a/src/host/popup.cpp +++ b/src/host/popup.cpp @@ -170,9 +170,9 @@ void Popup::_DrawPrompt(const UINT id) size_t used; LOG_IF_FAILED(ServiceLocator::LocateGlobals().api->WriteConsoleOutputCharacterWImpl(_screenInfo, - text, - WriteCoord, - used)); + text, + WriteCoord, + used)); } // Routine Description: