Skip to content

Commit

Permalink
Fix indentation when we're indenting a line that has an open paren af…
Browse files Browse the repository at this point in the history
…ter point.
  • Loading branch information
Wilfred committed Nov 11, 2014
1 parent fb66be9 commit c378f33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/julia-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,10 @@ before point. Returns nil if we're not within nested parens."
(indent-line-to
(or
;; If we're inside an open paren, indent to line up arguments.
(ignore-errors (julia-paren-indent))
;; If we're on a block end keyword, unindent.
(save-excursion
(beginning-of-line)
(ignore-errors (julia-paren-indent)))
(save-excursion
(beginning-of-line)
(forward-to-indentation 0)
Expand Down

0 comments on commit c378f33

Please sign in to comment.