File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
packages/jupyterlab-lsp/src/editor_integration Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 5
5
- bug fixes
6
6
7
7
- custom cell syntax highlighting is now properly removed when no longer needed ([ #387 ] )
8
+ - the completer in continuous hinting now works well with the pasted text ([ #389 ] )
8
9
9
10
[ #387 ] : https://github.com/krassowski/jupyterlab-lsp/issues/387
11
+ [ #389 ] : https://github.com/krassowski/jupyterlab-lsp/issues/389
10
12
11
13
### ` @krassowski/jupyterlab-lsp 2.0.7 ` (2020-09-18)
12
14
Original file line number Diff line number Diff line change @@ -230,7 +230,8 @@ export abstract class CodeMirrorIntegration
230
230
231
231
protected extract_last_character ( change : CodeMirror . EditorChange ) : string {
232
232
if ( change . origin === 'paste' ) {
233
- return change . text [ 0 ] [ change . text . length - 1 ] ;
233
+ let last_line = change . text [ change . text . length - 1 ] ;
234
+ return last_line [ last_line . length - 1 ] ;
234
235
} else {
235
236
return change . text [ 0 ] [ 0 ] ;
236
237
}
You can’t perform that action at this time.
0 commit comments