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

Comment in type definition causes cursor to jump to first column #36

Open
rcorre opened this issue Mar 8, 2015 · 1 comment
Open

Comment in type definition causes cursor to jump to first column #36

rcorre opened this issue Mar 8, 2015 · 1 comment

Comments

@rcorre
Copy link

rcorre commented Mar 8, 2015

Entering the comment char # in a type definition makes the cursor jump to the first column. For example:

type
  Foo = object
    |

If | represents, the cursor, entering a # in insert mode will result in

type
  Foo = object
#

As opposed to:

type
  Foo = object
    #

This only seems to happen if # is the first character entered on that line. If you enter another character, backspace, and then enter a #, the cursor stays in place.

@rcorre
Copy link
Author

rcorre commented Mar 8, 2015

Commenting out this block avoids the comment indentation bug but also prevents automatic indentation after an object definition.

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

1 participant