mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 17:44:11 +01:00
Fix '' for a subset of cases.
This commit is contained in:
@@ -1140,6 +1140,9 @@ var Buffer = Module("buffer", {
|
||||
},
|
||||
|
||||
scrollTo: function scrollTo(elem, left, top) {
|
||||
// Temporary hack. Should be done better.
|
||||
if (elem.ownerDocument == buffer.focusedFrame.document)
|
||||
marks.add("'");
|
||||
if (left != null)
|
||||
elem.scrollLeft = left;
|
||||
if (top != null)
|
||||
|
||||
@@ -595,8 +595,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
let info = context.INFO;
|
||||
if (info.*.@lang.length()) {
|
||||
let langs = set(String(a) for each (a in info.*.@lang));
|
||||
let lang = [window.navigator.language,
|
||||
window.navigator.language.replace(/-.*/, ""),
|
||||
let lang = [config.language, config.language.replace(/-.*/, ""),
|
||||
"en", "en-US", info.*.@lang[0]
|
||||
].filter(function (l) set.has(langs, l))[0];
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ var Marks = Module("marks", {
|
||||
(tab ? ", tab: " + tabs.index(tab) : "");
|
||||
},
|
||||
|
||||
isLocalMark: function isLocalMark(mark) /^[a-z]$/.test(mark),
|
||||
isLocalMark: function isLocalMark(mark) /^[a-z`']$/.test(mark),
|
||||
|
||||
isURLMark: function isURLMark(mark) /^[A-Z]$/.test(mark)
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user