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.
1 parent 80459bf commit 2220894Copy full SHA for 2220894
packages/jupyterlab-lsp/src/editor_integration/codemirror.ts
@@ -230,7 +230,8 @@ export abstract class CodeMirrorIntegration
230
231
protected extract_last_character(change: CodeMirror.EditorChange): string {
232
if (change.origin === 'paste') {
233
- return change.text[0][change.text.length - 1];
+ let last_line = change.text[change.text.length - 1];
234
+ return last_line[last_line.length - 1];
235
} else {
236
return change.text[0][0];
237
}
0 commit comments