Home Download Buy Blog Forum Support

[BUG] Context selector doesn't work on last line

[BUG] Context selector doesn't work on last line

Postby Suor on Thu Oct 25, 2012 10:55 am

I am using this key binding for my plugin https://github.com/Suor/CommentsAwareEnter

Code: Select all
[
    { "keys": ["enter"], "command": "comments_aware_enter", "context": [
        { "key": "selector", "operator": "equal", "operand": "comment.line" },
        { "key": "auto_complete_visible", "operator": "equal", "operand": false }
    ] }
]

but I doesn't work when cursor is on the last line of a file. I tried commenting out
Code: Select all
  { "key": "selector", "operator": "equal", "operand": "comment.line" },

then it starts to work.
Suor
 
Posts: 9
Joined: Wed Oct 19, 2011 3:09 pm

Re: [BUG] Context selector doesn't work on last line

Postby bizoo on Thu Oct 25, 2012 11:45 am

Actually, it doesn't work only if the cursor is at the end of the last line.
If the cursor is somewhere else on the last line, it works fine.
bizoo
 
Posts: 889
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 20 guests