Fix quoting when selecting started from the end of a line on Firefox. This sounds really silly.
This commit is contained in:
parent
2049db8600
commit
5e0f808e71
@ -1683,7 +1683,7 @@
|
||||
text = ">>" + id + "\n";
|
||||
selection = window.getSelection();
|
||||
if (s = selection.toString()) {
|
||||
selectionID = (_ref = $.x('ancestor::blockquote/preceding-sibling::input', selection.anchorNode)) != null ? _ref.name : void 0;
|
||||
selectionID = (_ref = $.x('ancestor-or-self::blockquote/preceding-sibling::input', selection.anchorNode)) != null ? _ref.name : void 0;
|
||||
if (selectionID === id) {
|
||||
s = s.replace(/\n/g, '\n>');
|
||||
text += ">" + s + "\n";
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
master
|
||||
- mayhem
|
||||
fix selection to quote when selecting started from the end of a line on Firefox
|
||||
|
||||
2.23.4
|
||||
- mayhem
|
||||
|
||||
@ -1322,7 +1322,7 @@ qr =
|
||||
|
||||
selection = window.getSelection()
|
||||
if s = selection.toString()
|
||||
selectionID = $.x('ancestor::blockquote/preceding-sibling::input', selection.anchorNode)?.name
|
||||
selectionID = $.x('ancestor-or-self::blockquote/preceding-sibling::input', selection.anchorNode)?.name
|
||||
if selectionID is id
|
||||
s = s.replace /\n/g, '\n>'
|
||||
text += ">#{s}\n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user