Sublime Forum

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

#1

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


    { "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

  { "key": "selector", "operator": "equal", "operand": "comment.line" },

then it starts to work.

0 Likes

#2

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.

0 Likes