Skip to content

Commit

Permalink
Incorporate PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
j4james committed Jan 10, 2024
1 parent c3a6bad commit 62aa579
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/terminal/adapter/adaptDispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2802,7 +2802,8 @@ void AdaptDispatch::_ClearAllTabStops() noexcept
// - True if handled successfully. False otherwise.
bool AdaptDispatch::TabSet(const VTParameter setType) noexcept
{
if (setType == DispatchTypes::TabSetType::SetEvery8Columns || !setType.has_value())
constexpr auto SetEvery8Columns = DispatchTypes::TabSetType::SetEvery8Columns;
if (setType.value_or(SetEvery8Columns) == SetEvery8Columns)
{
_tabStopColumns.clear();
_initDefaultTabStops = true;
Expand Down
2 changes: 1 addition & 1 deletion src/terminal/adapter/adaptDispatch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ namespace Microsoft::Console::VirtualTerminal
StringHandler _CreateDrcsPassthroughHandler(const DispatchTypes::DrcsCharsetSize charsetSize);
StringHandler _CreatePassthroughHandler();

std::vector<bool> _tabStopColumns;
std::vector<uint8_t> _tabStopColumns;
bool _initDefaultTabStops = true;

ITerminalApi& _api;
Expand Down

0 comments on commit 62aa579

Please sign in to comment.