qutebrowser/tests/unit
Ryan Roden-Corrent d5e30fd728 Don't crash first completion update with min_chars.
When min_chars is nonzero, if the first command that opens the
completion has < min_chars on the word under the cursor, it triggers a
check for a condition where last_cursor_pos is None.

By setting last_cursor_pos=-1 we ensure that the completer always
updates the first time it is opened, and that there is never a check
against None.

This adds a test for the min_chars feature.

Resolves #3635.
2018-03-01 22:07:53 -05:00
..
browser Migrate spell tests to unittests 2018-02-28 08:08:23 +01:00
commands Update copyright years 2018-02-05 12:19:50 +01:00
completion Don't crash first completion update with min_chars. 2018-03-01 22:07:53 -05:00
config Add a test for :set -p with a pattern 2018-02-25 19:33:27 +01:00
javascript Update copyright years 2018-02-05 12:19:50 +01:00
keyinput Update copyright years 2018-02-05 12:19:50 +01:00
mainwindow Use a different directory for file prompt tests 2018-02-19 22:08:42 +01:00
misc Paste version information privately 2018-02-26 23:09:55 +01:00
scripts Update copyright years 2018-02-05 12:19:50 +01:00
utils Merge branch 'per-url' 2018-02-25 19:44:51 +01:00
test_app.py Update copyright years 2018-02-05 12:19:50 +01:00