-
Notifications
You must be signed in to change notification settings - Fork 346
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
After the newline have to hit <tab> twice to start cycling #276
Comments
Which indentation mode? |
This is all I have in my .emacs:
|
So is this expected or this is an issue? |
I believe so; it's been a while since I used haskell-indent but I think the first one makes sure it's lined up to where it "should" be and then the cycle starts. |
It would be awesome if this was customizable because in 90% of cases it seems like tab is used immediately after newline, so it's already indented and after that tab is used to "fix" the indentation. |
Found this old indentation bug/ feature request of mine. gracjan, could you please confirm this is indeed an intended behavior or a bug? Reproduces with hi2 too unfortunately. Note: this only reproduces immediately after the newline when there are only two possible indentation positions. So immediately after the newline the cursor would be on the second one. After I hit This doesn't happen when there are three indentation positions. After the newline I would be on the second one. Hitting tab would move me to the third one instantly. Hitting tab again moves me to the first one without any issues. |
In this issue you are talking about |
If you have example of code that has two or more indentation points and single TAB does nothing but second one moves then I'd like to see it and put it in the test suite that we have for Note that |
@EDmitry: I've read your comment more carefully :) Can you paste your code that exhibits this behavior? I could not find any examples myself. |
It reproduces for every line of code that has two indentation positions under it like:
It could be related to evil-mode, so I am going to retest this without it to localize the problem. I just wasn't sure if that's a bug or an intended behavior, but now I am :-) |
I cannot reproduce with current wip/hi2. Can you make sure to do:
(the point is to make sure that there are no stale |
Reopen if there is anything to add to this particular discussion. |
I am trying to understand if this is an intended behavior. After I make a newline I am trying to use to cycle through all possible indentations. But when I hit the first time immediately after a newline nothing happens. Only when I hit it the second time the indentation level starts to cycle. If this is not an expected behavior I will add more information.
The text was updated successfully, but these errors were encountered: