Skip to content

Commit

Permalink
[silmarillion] Update the validation for the moveTab action
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Feb 6, 2023
1 parent 40046c3 commit a20201f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cascadia/TerminalSettingsModel/ActionArgs.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ private:
X(Windows::Foundation::IReference<uint32_t>, Index, "index", false, nullptr)

////////////////////////////////////////////////////////////////////////////////
#define MOVE_TAB_ARGS(X) \
X(MoveTabDirection, Direction, "direction", args->Direction() == MoveTabDirection::None, MoveTabDirection::None) \
#define MOVE_TAB_ARGS(X) \
X(MoveTabDirection, Direction, "direction", (args->Direction() == MoveTabDirection::None) && (args->Window().empty()), MoveTabDirection::None) \
X(winrt::hstring, Window, "window", false, L"")

// Other ideas:
Expand Down

0 comments on commit a20201f

Please sign in to comment.