qword 1.1.18 → 1.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ 2026.09.08, v1.1.19
2
+
3
+ fix:
4
+ - eb386eb client: indent after paste
5
+ - c3e8704 client: options: vim: correct selection not empty test assertion
6
+
1
7
  2026.09.07, v1.1.18
2
8
 
3
9
  feature:
@@ -26,6 +26,7 @@ export const keepIndentAfterEnterVim = EditorState.transactionFilter.of((tr) =>
26
26
 
27
27
  let insertedNewline = false;
28
28
  let alreadyIndented = false;
29
+ let isMultilinePaste = false;
29
30
 
30
31
  tr.changes.iterChanges((_fromA, _toA, _fromB, _toB, inserted) => {
31
32
  const text = inserted.toString();
@@ -33,11 +34,14 @@ export const keepIndentAfterEnterVim = EditorState.transactionFilter.of((tr) =>
33
34
  if (text.includes('\n'))
34
35
  insertedNewline = true;
35
36
 
37
+ if (text.split('\n').length > 2)
38
+ isMultilinePaste = true;
39
+
36
40
  if (text.endsWith(`\n${indent}`))
37
41
  alreadyIndented = true;
38
42
  });
39
43
 
40
- if (!insertedNewline || alreadyIndented)
44
+ if (!insertedNewline || alreadyIndented || isMultilinePaste)
41
45
  return tr;
42
46
 
43
47
  return [