mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-02 01:42:53 -05:00
refac
This commit is contained in:
1 parent
d61a91700a
commit
91dc0495fd
1 file changed
+4
-1
@@ -58,7 +58,10 @@
|
||||
const removed =
|
||||
chunk.fromA === chunk.toA || !base.length
|
||||
? 0
|
||||
: base.lineAt(chunk.endA).number - base.lineAt(chunk.fromA).number + 1;
|
||||
: base.lineAt(chunk.endA).number -
|
||||
base.lineAt(chunk.fromA).number +
|
||||
1 -
|
||||
Number(base.lineAt(chunk.endA).from === base.length);
|
||||
const start = doc.lineAt(chunk.fromB).number;
|
||||
const end = doc.lineAt(chunk.endB).number;
|
||||
for (let number = start; number <= end; number++) {
|
||||
|
||||
Reference in new issue
Block a user