diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-07-13 10:29:26 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-07-13 10:29:26 +0200 |
commit | 84f9e9f86317609f89b78cf99d5a97643e914c99 (patch) | |
tree | 97aa0829fcc0855bc882ac48de2979964586744d | |
parent | 38092895810ed22ed69b9ecc432277d7d9f611dc (diff) | |
download | qutebrowser-84f9e9f86317609f89b78cf99d5a97643e914c99.tar.gz qutebrowser-84f9e9f86317609f89b78cf99d5a97643e914c99.zip |
Fix lint/docs
-rw-r--r-- | doc/changelog.asciidoc | 6 | ||||
-rw-r--r-- | qutebrowser/mainwindow/prompt.py | 2 | ||||
-rw-r--r-- | tests/unit/mainwindow/test_prompt.py | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index 0e2376eb0..669a20c54 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -24,6 +24,12 @@ Fixed - Switching tabs via mouse wheel scrolling now works properly on macOS. Set `tabs.mousewheel_switching` to false if you prefer the previous behavior. +- Crash when entering unicode surrogates into the filename prompt. + +Changed +~~~~~~~ + +- Typing in the filename prompt now filters matching directories. [[v2.3.1]] v2.3.1 (unreleased) diff --git a/qutebrowser/mainwindow/prompt.py b/qutebrowser/mainwindow/prompt.py index 7ac9f7522..c8cbe572b 100644 --- a/qutebrowser/mainwindow/prompt.py +++ b/qutebrowser/mainwindow/prompt.py @@ -24,8 +24,8 @@ import html import collections import functools import dataclasses - from typing import Deque, MutableSequence, Optional, cast + from PyQt5.QtCore import (pyqtSlot, pyqtSignal, Qt, QTimer, QDir, QModelIndex, QItemSelectionModel, QObject, QEventLoop) from PyQt5.QtWidgets import (QWidget, QGridLayout, QVBoxLayout, QLineEdit, diff --git a/tests/unit/mainwindow/test_prompt.py b/tests/unit/mainwindow/test_prompt.py index 055e5b665..5b774bdaa 100644 --- a/tests/unit/mainwindow/test_prompt.py +++ b/tests/unit/mainwindow/test_prompt.py @@ -80,6 +80,8 @@ class TestFileCompletion: with qtbot.wait_signal(prompt._file_model.directoryLoaded): for _ in range(3): qtbot.keyPress(prompt._lineedit, Qt.Key_Backspace) + + # For some reason, this isn't always called when using qtbot.keyPress. prompt._set_fileview_root(prompt._lineedit.text()) # '..' and 'foo' should get completed from 'f' |