Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single-line commenting shifts line indent #248

Open
tourman opened this issue Mar 23, 2020 · 2 comments
Open

Single-line commenting shifts line indent #248

tourman opened this issue Mar 23, 2020 · 2 comments

Comments

@tourman
Copy link

tourman commented Mar 23, 2020

Description

A code line is shifting while toggling comments by a shortcut. See gif: https://ibb.co/9ZGvWPj
However the toggling by the dropdown from the main menu works fine.

Steps to reproduce

  1. Create empty JS file
  2. Type something in any line
  3. Toggle twice comment by a shortcut
  4. The line is shifted by a space

Expected behavior

There should be no indents after the toggling single-line comments via a shortcut.

Actual behavior

The line I try to twice toggle comment for is shifted by a space.
While a shortcut console shows the following only.

command: naomi_toggle_jsx_comment {"block": false}
command: naomi_toggle_jsx_comment {"block": false}

The menu usage causes console to show this:

command: toggle_comment {"block": false}
command: toggle_comment {"block": false}

Environment

  • ST3 Build: 3211
  • Naomi: v4.3.2
  • Operating system and version: macOS 10.14.5
@ansonlouis
Copy link

I got around this by copying Sublimes default toggle_comment command over to my user pref key-bindings

{ "keys": ["super+forward_slash"], "command": "toggle_comment", "args": { "block": false } }

@patrickjrm
Copy link

The above fix also worked for me! Albeit switching super+forward_slash to ctrl+forward_slash for Windows behavior. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants