Skip to content

Commit

Permalink
Complete on an empty line, too
Browse files Browse the repository at this point in the history
  • Loading branch information
dgutov committed Mar 7, 2014
1 parent f1ea8f8 commit 409fd73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inf-ruby.el
Expand Up @@ -440,7 +440,8 @@ Then switch to the process buffer."
(defun inf-ruby-completions (expr)
"Return a list of completions for the Ruby expression starting with EXPR."
(let* ((proc (inf-ruby-proc))
(line (buffer-substring (save-excursion (beginning-of-thing 'line))
(line (buffer-substring (save-excursion (move-beginning-of-line 1)
(point))
(point)))
(comint-filt (process-filter proc))
(kept "") completions
Expand Down

0 comments on commit 409fd73

Please sign in to comment.