guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

73/197: installer: Correct behaviour of push-cursor and pop-cursor proce


From: Danny Milosavljevic
Subject: 73/197: installer: Correct behaviour of push-cursor and pop-cursor procedures.
Date: Mon, 3 Jul 2017 20:37:02 -0400 (EDT)

dannym pushed a commit to branch wip-installer-2
in repository guix.

commit a8018122558654ca726b86d45fb802254fa128e6
Author: John Darrington <address@hidden>
Date:   Fri Jan 6 17:41:01 2017 +0100

    installer: Correct behaviour of push-cursor and pop-cursor procedures.
    
    * utils.scm (push-cursor,pop-cursor): Correct thinko.
---
 gnu/system/installer/utils.scm | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/gnu/system/installer/utils.scm b/gnu/system/installer/utils.scm
index 25a8390..5517710 100644
--- a/gnu/system/installer/utils.scm
+++ b/gnu/system/installer/utils.scm
@@ -209,13 +209,11 @@ which will process each string before returning it."
 (define cursor-stack '())
 
 (define (push-cursor c)
-  (curs-set c)
-  (set! cursor-stack (cons c cursor-stack)))
+  (set! cursor-stack (cons (curs-set c) cursor-stack)))
 
 (define (pop-cursor)
-  (set! cursor-stack (cdr cursor-stack))
-  (curs-set (car cursor-stack)))
-
+  (curs-set (car cursor-stack))
+  (set! cursor-stack (cdr cursor-stack)))
 
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]