mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:57:58 +01:00
Closes issue #596.
This commit is contained in:
@@ -1133,7 +1133,7 @@ var Buffer = Module("buffer", {
|
||||
return "";
|
||||
|
||||
let range = selection.getRangeAt(0).cloneRange();
|
||||
if (range.collapsed) {
|
||||
if (range.collapsed && range.startContainer instanceof Text) {
|
||||
let re = options.get("iskeyword").regexp;
|
||||
Editor.extendRange(range, true, re, true);
|
||||
Editor.extendRange(range, false, re, true);
|
||||
|
||||
@@ -361,7 +361,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
echoerr: function echoerr(str, flags) {
|
||||
flags |= commandline.APPEND_TO_MESSAGES;
|
||||
|
||||
if (isinstance(str, ["Error", "Exception"]) || isinstance(str, ["XPCWrappedNative_NoHelper"]) && /^\[Exception/.test(str))
|
||||
if (isinstance(str, ["DOMException", "Error", "Exception"]) || isinstance(str, ["XPCWrappedNative_NoHelper"]) && /^\[Exception/.test(str))
|
||||
dactyl.reportError(str);
|
||||
if (isObject(str) && "echoerr" in str)
|
||||
str = str.echoerr;
|
||||
|
||||
Reference in New Issue
Block a user