diff --git a/qutebrowser/browser/curcommand.py b/qutebrowser/browser/curcommand.py index 6b3eeb7bb..06ead9e86 100644 --- a/qutebrowser/browser/curcommand.py +++ b/qutebrowser/browser/curcommand.py @@ -364,9 +364,9 @@ class CurCommandDispatcher(QObject): def on_editor_closed(self, elem, oshandle, filename, exitcode, exitstatus): - """Gets called by QProcess when the editor was closed. + """Write the editor text into the form field and clean up tempfile. - Writes the editor text into the form field. + Callback for QProcess when the editor was closed. """ logging.debug("Editor closed") if exitcode != 0 or exitstatus != QProcess.NormalExit: diff --git a/qutebrowser/utils/webelem.py b/qutebrowser/utils/webelem.py index 7847a2f3f..3aba6564b 100644 --- a/qutebrowser/utils/webelem.py +++ b/qutebrowser/utils/webelem.py @@ -75,7 +75,7 @@ def is_visible(e, frame=None): def javascript_escape(text): - """Escapes special values in strings. + """Escape values special to javascript in strings. This maybe makes them work with QWebElement::evaluateJavaScript. Maybe.