Closed Jell closed 12 years ago
If I run M-x ruby-end-of-defun in this file, where | is the position of the cursor:
M-x ruby-end-of-defun
|
def te|st "test" end
The cursor ends up here:
def test "test" |end
Instead of here:
def test "test" end|
Even worse, if I run it at this position:
def test "test" e|nd
Then the CPU usage goes up to 100% and emacs is frozen in an infinite loop.
Fixed. Also fixed bug in ruby-beginning-of-defun.
If I run
M-x ruby-end-of-defun
in this file, where|
is the position of the cursor:The cursor ends up here:
Instead of here:
Even worse, if I run it at this position:
Then the CPU usage goes up to 100% and emacs is frozen in an infinite loop.