aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 4baf9d371bc..8a704bdc298 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1830,7 +1830,7 @@ window_list_1 (window, minibuf, all_frames)
1830 rest = Fmemq (window, list); 1830 rest = Fmemq (window, list);
1831 if (!NILP (rest) && !EQ (rest, list)) 1831 if (!NILP (rest) && !EQ (rest, list))
1832 { 1832 {
1833 for (tail = list; XCDR (tail) != rest; tail = XCDR (tail)) 1833 for (tail = list; !EQ (XCDR (tail), rest); tail = XCDR (tail))
1834 ; 1834 ;
1835 XSETCDR (tail, Qnil); 1835 XSETCDR (tail, Qnil);
1836 list = nconc2 (rest, list); 1836 list = nconc2 (rest, list);