aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2020-07-25 13:06:53 +0200
committerOmar Polo <op@omarpolo.com>2020-07-25 13:06:53 +0200
commitedba2cef5243fc1425f63911b43f87d94729adc7 (patch)
tree4a923105ea83a513897b2c4c82271eaf36aec801
parent410e6b9775eaff6b9f8baa94f82cf0502bb3c81d (diff)
downloadsam.el-edba2cef5243fc1425f63911b43f87d94729adc7.tar.gz
sam.el-edba2cef5243fc1425f63911b43f87d94729adc7.tar.bz2
go to the end of *sam* buffer before executing the command
This way, if ones goes up in the buffer history to re-run a command, the point will still be teleported to (point-main)
-rw-r--r--sam.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/sam.el b/sam.el
index 6df0431..fd0a339 100644
--- a/sam.el
+++ b/sam.el
@@ -148,6 +148,7 @@
(addr (car parsed))
(cmd (cdr parsed)))
(insert "\n")
+ (goto-char (point-max))
(sam-set-dot addr)
(sam-exec-command cmd)))