Run lint & format
This commit is contained in:
parent
be6e861ee7
commit
665cdb2881
3 changed files with 143 additions and 5 deletions
|
|
@ -85,8 +85,11 @@ fn main() {
|
|||
// reconcile-text understands both edits relative to the common ancestor
|
||||
// and keeps both.
|
||||
try_merge(
|
||||
"We used the existing parsing approach for processing. The output was saved to the database.",
|
||||
"We used the existing parsing approach for processing. Always validate the schema! The output was saved to the database.",
|
||||
"We adopted a brand new analysis pipeline for execution. The results were written to cloud storage.",
|
||||
"We used the existing parsing approach for processing. The output was saved to the \
|
||||
database.",
|
||||
"We used the existing parsing approach for processing. Always validate the schema! The \
|
||||
output was saved to the database.",
|
||||
"We adopted a brand new analysis pipeline for execution. The results were written to \
|
||||
cloud storage.",
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,10 @@ async function main(): Promise<void> {
|
|||
rightTextArea.addEventListener('input', scheduleUpdate);
|
||||
|
||||
document.addEventListener('selectionchange', () => {
|
||||
if (document.activeElement === leftTextArea || document.activeElement === rightTextArea) {
|
||||
if (
|
||||
document.activeElement === leftTextArea ||
|
||||
document.activeElement === rightTextArea
|
||||
) {
|
||||
scheduleUpdate();
|
||||
}
|
||||
});
|
||||
|
|
@ -112,7 +115,11 @@ function updateMergedText(): void {
|
|||
|
||||
for (const character of text) {
|
||||
let className = history;
|
||||
if (!isDelete && selectionStart <= currentPosition && currentPosition < selectionEnd) {
|
||||
if (
|
||||
!isDelete &&
|
||||
selectionStart <= currentPosition &&
|
||||
currentPosition < selectionEnd
|
||||
) {
|
||||
className += ` selection-${selectionSide}`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue