File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 336336 refresh ( ) { } ,
337337 cword ( ) { // apl identifier under cursor
338338 const { me } = this ;
339- const c = me . getPosition ( ) ;
340- const s = me . model . getLineContent ( c . lineNumber ) ;
339+ const p = me . getPosition ( ) ;
340+ const c = p . column - 1 ;
341+ const s = me . model . getLineContent ( p . lineNumber ) ;
341342 const r = '[A-Z_a-zÀ-ÖØ-Ýß-öø-üþ∆⍙Ⓐ-Ⓩ0-9]*' ; // r:regex fragment used for a name
342343 return (
343- ( ( RegExp ( `⎕?${ r } $` ) . exec ( s . slice ( 0 , c . column ) ) || [ ] ) [ 0 ] || '' ) + // match left of cursor
344- ( ( RegExp ( `^${ r } ` ) . exec ( s . slice ( c . column ) ) || [ ] ) [ 0 ] || '' ) // match right of cursor
344+ ( ( RegExp ( `⎕?${ r } $` ) . exec ( s . slice ( 0 , c ) ) || [ ] ) [ 0 ] || '' ) + // match left of cursor
345+ ( ( RegExp ( `^${ r } ` ) . exec ( s . slice ( c ) ) || [ ] ) [ 0 ] || '' ) // match right of cursor
345346 ) . replace ( / ^ \d + / , '' ) ; // trim leading digits
346347 } ,
347348 autoCloseBrackets ( x ) { this . me . updateOptions ( { autoClosingBrackets : x } ) ; } ,
You can’t perform that action at this time.
0 commit comments