mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 05:58:03 +01:00
Somewhat better Y and :yank copy behavior that should work as expected on OS-X.
This commit is contained in:
@@ -481,10 +481,7 @@ const Buffer = Module("buffer", {
|
||||
controller.setCaretEnabled(caretmode);
|
||||
return String.match(selection, /\w*/)[0];
|
||||
}
|
||||
if (util.computedStyle(range.startContainer).whiteSpace == "pre"
|
||||
&& util.computedStyle(range.endContainer).whiteSpace == "pre")
|
||||
return String(range);
|
||||
return String(selection);
|
||||
return util.domToString(range);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user