Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Let arrows work correctly if no process in *idl*

  • Loading branch information...
commit 8b462f73d9ed45dd3427e863d485a86f668fc9cc 1 parent 0ec629a
@jdtsmith authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 idlw-shell.el
View
8 idlw-shell.el
@@ -1472,12 +1472,14 @@ when the IDL prompt gets displayed again after the current IDL command."
"When in last line of process buffer, do `comint-previous-input'.
Otherwise just move the line. Move down unless UP is non-nil.
Move normally inside of blocks, unless NOBLOCK-MOVE is non-nil."
- (let* ((proc-pos (marker-position
- (process-mark (get-buffer-process (current-buffer)))))
+ (let* ((proc (get-buffer-process (current-buffer)))
+ (proc-pos (if proc (marker-position (process-mark proc))))
(arg (or arg 1))
(arg (if up arg (- arg))))
+
(if (eq t idlwave-shell-arrows-do-history) (goto-char proc-pos))
- (if (and idlwave-shell-arrows-do-history
+ (if (and proc
+ idlwave-shell-arrows-do-history
(or noblock-move
(if up
(= (line-number-at-pos) (line-number-at-pos proc-pos))
Please sign in to comment.
Something went wrong with that request. Please try again.