We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1d5ee0 + f9cd1ef commit d20a461Copy full SHA for d20a461
common/content/editor.js
@@ -70,6 +70,10 @@ const Editor = Module("editor", {
70
return;
71
}
72
73
+ // clear completion preview so it does not get turned into regular text
74
+ if (commandline._completions)
75
+ commandline._completions.previewClear();
76
+
77
let elem = liberator.focus;
78
79
if (elem.setSelectionRange && util.readFromClipboard()) {
@@ -91,6 +95,10 @@ const Editor = Module("editor", {
91
95
elem.scrollTop = curTop;
92
96
elem.scrollLeft = curLeft;
93
97
98
99
+ // update completion preview as would happen with Ctrl+v or mouse paste
100
+ if (commandline._completions && options.autocomplete)
101
+ commandline._completions.complete(true, false);
94
102
},
103
104
// count is optional, defaults to 1
0 commit comments