Fixing stuff

This commit is contained in:
2026-09-30 15:18:42 +02:00
parent 2925127110
commit 8fafea4fc3
4 changed files with 6 additions and 6 deletions
@@ -33,11 +33,11 @@ import Testing
#expect(route(cmd("a"), KeyContext(owner: .terminal)) == .pass)
}
@Test func commandCFocusesTheCommitBoxUnlessThereIsSomethingToCopy() {
@Test func commandCFocusesTheCommitBoxOutsideTheTerminalUnlessThereIsSomethingToCopy() {
#expect(route(cmd("c")) == .perform(.focusCommitMessage))
#expect(route(cmd("c"), KeyContext(owner: .text(in: .editor), hasTextSelection: true)) == .pass)
#expect(route(cmd("c"), KeyContext(hasEditorLineSelection: true)) == .pass)
#expect(route(cmd("c"), KeyContext(owner: .terminal)) == .perform(.focusCommitMessage))
#expect(route(cmd("c"), KeyContext(owner: .terminal)) == .pass)
#expect(route(cmd("c"), KeyContext(owner: .terminal, hasTextSelection: true)) == .pass)
}