Skip to content

Commit 15bdc0b

Browse files
committed
Fixed the bug with the auto-complete test
1 parent 6f7a8fa commit 15bdc0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ def test_autocomplete(main):
17511751
editor.set_text(r"""import cadquery as cq\nres = cq.Workplane()""")
17521752

17531753
# Set the cursor position to the end of the text
1754-
editor.set_cursor_position(len(editor.get_text_with_eol()))
1754+
editor.set_cursor_position(len(editor.get_text_with_eol()) - 1)
17551755

17561756
# Trigger auto-complete
17571757
editor._trigger_autocomplete()

0 commit comments

Comments
 (0)