Explain changed?
This commit is contained in:
@@ -42,6 +42,11 @@ will update the display."
|
|||||||
""))
|
""))
|
||||||
(unless (eq line (getitem self.screen lineno))
|
(unless (eq line (getitem self.screen lineno))
|
||||||
(setitem self.screen lineno line)
|
(setitem self.screen lineno line)
|
||||||
|
;; `changed?` might have just been an explicit
|
||||||
|
;; boolean value, but Hissp would prefer that we
|
||||||
|
;; mutate values and not reassign variables. Since
|
||||||
|
;; a `list` is an implicit boolean value, appending
|
||||||
|
;; (or not) to it works fine.
|
||||||
(.append changed? line)
|
(.append changed? line)
|
||||||
;; ^[[K to erase any characters that follow on this line
|
;; ^[[K to erase any characters that follow on this line
|
||||||
(.append output (.format "{}[K"
|
(.append output (.format "{}[K"
|
||||||
|
|||||||
Reference in New Issue
Block a user