Commit aa247686 authored by Karl Heuer's avatar Karl Heuer
Browse files

(shell-command-on-region): Start of region to keep is

min of endpoints, not max.
parent eb18bc57
......@@ -894,7 +894,7 @@ In either case, the output is inserted after point (leaving mark after it)."
;; then replace that region with the output.
(progn (setq buffer-read-only nil)
(delete-region (max start end) (point-max))
(delete-region (point-min) (max start end))
(delete-region (point-min) (min start end))
(call-process-region (point-min) (point-max)
shell-file-name t t nil
shell-command-switch command)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment