mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
fix: bug introduced with 88812092fd
fixes #6419 (#6420)
This commit is contained in:
parent
9fce8153df
commit
6452eb56a9
@ -13,8 +13,8 @@ Text editor operation to wrap the selected lines with a prefix and suffix
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["wrap-lines"] = function(event,operation) {
|
exports["wrap-lines"] = function(event,operation) {
|
||||||
var prefix = operation.paramObject.prefix || "",
|
var prefix = event.paramObject.prefix || "",
|
||||||
suffix = operation.paramObject.suffix || "";
|
suffix = event.paramObject.suffix || "";
|
||||||
// Cut just past the preceding line break, or the start of the text
|
// Cut just past the preceding line break, or the start of the text
|
||||||
operation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart);
|
operation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart);
|
||||||
// Cut to just past the following line break, or to the end of the text
|
// Cut to just past the following line break, or to the end of the text
|
||||||
|
Loading…
Reference in New Issue
Block a user