(matlab-shell-run-region): Fix last commit and correctly use
`buffer-substring' again.
This commit is contained in:
parent
4e27fa2f9f
commit
2c4046efd2
1 changed files with 1 additions and 1 deletions
|
@ -5001,7 +5001,7 @@ This command requires an active MATLAB shell."
|
|||
(if (> beg end) (let (mid) (setq mid beg beg end end mid)))
|
||||
|
||||
(let ((command
|
||||
(let ((str (concat (buffer-string) "\n")))
|
||||
(let ((str (concat (buffer-substring beg end) "\n")))
|
||||
;; Remove comments
|
||||
(with-temp-buffer
|
||||
(insert str)
|
||||
|
|
Loading…
Reference in a new issue