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

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

[nongnu] elpa/inf-ruby 5bb2919691 155/265: Keep the buffer's restriction


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 5bb2919691 155/265: Keep the buffer's restrictions
Date: Sat, 9 Jul 2022 21:59:22 -0400 (EDT)

branch: elpa/inf-ruby
commit 5bb2919691320758565bc5df3efcde07dd10d065
Author: Maxim Kashchenko <mkaschenko@me.com>
Commit: Maxim Kashchenko <mkaschenko@me.com>

    Keep the buffer's restrictions
---
 inf-ruby.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index bbfb8b95c1..06eeb0af4b 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -478,7 +478,9 @@ Then switch to the process buffer."
 (defun ruby-send-buffer ()
   "Send the current buffer to the inferior Ruby process."
   (interactive)
-  (ruby-send-region (point-min) (point-max)))
+  (save-restriction
+    (widen)
+    (ruby-send-region (point-min) (point-max))))
 
 (defun ruby-escape-single-quoted (str)
   "Escape single quotes, double quotes and newlines in STR."



reply via email to

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