Skip to content

Commit 1cbc45e

Browse files
authored
Update test_tui_input.py
1 parent 2f93919 commit 1cbc45e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎tests/tui/test_tui_input.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,13 @@ def test_completer_at_references(self):
152152
)
153153
names = [x.text for x in completions]
154154
self.assertIn("ME.md", names)
155+
# @ inside a slash command also completes (regression: the
156+
# @ was not stripped, so no file matched)
157+
completions = list(
158+
c.get_completions(Document(text="/review @scr", cursor_position=12), None)
159+
)
160+
names = [x.text for x in completions]
161+
self.assertIn("eenshot.png", names)
155162

156163
def test_completer_unlistable_directory_no_crash(self):
157164
"""A path whose directory cannot be listed yields no completions

0 commit comments

Comments
 (0)