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

fix wrong indentation on empty line between existing code #193

Merged
merged 1 commit into from
May 22, 2015
Merged

Conversation

tonini
Copy link
Contributor

@tonini tonini commented May 21, 2015

fixes #165

This fixes the problem of the wrong indentation when moving on a new empty line between existing code and the cursor get moved to the end of the line.

Examples:

defmodule Math do
    def max(list) do
                        # ...when you start typing
    Enum.reduce list, 0, fn(x, acc) ->
      if x > acc, do: x, else: acc
    end
  end
end
def generate_pkg(path, opts) do
  name = Path.basename(Path.expand(path))

  File.mkdir_p!(path)
                         # ...when you start typing
  File.cd! path, fn ->
    _generate_pkg(name, opts)
  end
end

tonini added a commit that referenced this pull request May 22, 2015
fix wrong indentation on empty line between existing code
@tonini tonini merged commit 45f97ab into master May 22, 2015
@tonini tonini deleted the issue-165 branch May 22, 2015 14:48
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

Successfully merging this pull request may close these issues.

Indenting too far over when invoking evil-open-above and evil-open-below
2 participants