Skip to content

Running indent-according-to-mode moves the cursor way to the right #488

Closed
@EDmitry

Description

@EDmitry

When using turn-on-haskell-indentation if I create two new lines after some haskell block of code and run indent-according-to-mode this will result in the indentation about 12 spaces to the right. This breaks a bunch of modes (like evil-mode) that move the cursor around and then call indent-according-to-mode to get the right indentation for that line. I suspect this is because of the functionality of tab to cycle through various indentation so executing the command results in cycling to the second tab position because when the cursor is in the beginning of the line that is the first tab position. Is there any workaround?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions