emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/inf-ruby 409fd736d4 104/265: Complete on an empty line, to


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 409fd736d4 104/265: Complete on an empty line, too
Date: Sat, 9 Jul 2022 21:59:17 -0400 (EDT)

branch: elpa/inf-ruby
commit 409fd736d4ae69538fa7a0d6bcc934f1c1d1919f
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Complete on an empty line, too
---
 inf-ruby.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 2dcb7b964f..54b37f4e37 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]