Line ending sequences for the current tab are included in the deep link URL

This commit is contained in:
n1474335 2022-10-28 12:44:06 +01:00
parent f6ae89587c
commit 570206af77
4 changed files with 41 additions and 4 deletions

View file

@ -142,6 +142,14 @@ class InputWaiter {
this.setInput(oldInputVal);
}
/**
* Getter for the input EOL sequence
* @returns {string}
*/
getEOLSeq() {
return this.inputEditorView.state.lineBreak;
}
/**
* Handler for Chr Enc change events
* Sets the input character encoding
@ -179,7 +187,7 @@ class InputWaiter {
*/
getInput() {
const doc = this.inputEditorView.state.doc;
const eol = this.inputEditorView.state.lineBreak;
const eol = this.getEOLSeq();
return doc.sliceString(0, doc.length, eol);
}
@ -644,7 +652,7 @@ class InputWaiter {
buffer: buffer,
stringSample: stringSample,
encoding: this.getChrEnc(),
eolSequence: this.inputEditorView.state.lineBreak
eolSequence: this.getEOLSeq()
}
}, transferable);
}