Make a compile failure only redisplay if it needs to
This commit is contained in:
parent
254d66270b
commit
70fb3a9500
1 changed files with 14 additions and 2 deletions
|
@ -530,6 +530,12 @@ Additionally ensures correct line numbers on the way, as a bonus."
|
|||
,column (ignore-errors (line-length ,line))))
|
||||
:until (null ,line)))
|
||||
|
||||
(defmethod get-line-in-buffer-by-number ((buffer buffer) line-number)
|
||||
(loop :for line := (first-line buffer) :then (next-line line)
|
||||
:until (null line)
|
||||
:when (eql line-number (line-number line))
|
||||
:return line))
|
||||
|
||||
|
||||
|
||||
(defun status-line-string ()
|
||||
|
@ -943,7 +949,13 @@ Additionally ensures correct line numbers on the way, as a bonus."
|
|||
(let ((key (get-input-sequence)))
|
||||
(if (and (integerp line) (integerp col)
|
||||
(equal '(:C . #\j) key))
|
||||
(let ((refreshp (line-in-view
|
||||
(get-line-in-buffer-by-number
|
||||
(current-buffer *editor*) line)
|
||||
(current-view *editor*))))
|
||||
(cursor-go-to (cursor *editor*) line col)
|
||||
(when refreshp
|
||||
(redisplay-view (current-view *editor*))))
|
||||
(redisplay-view (current-view *editor*)))))
|
||||
|
||||
(defparameter *refresh-asm-functions-p* #+swank t #-swank nil
|
||||
|
|
Loading…
Add table
Reference in a new issue