Showing 1 changed files with 10 additions and 9 deletions
+10 -9
Nasal/menu.nas
... ...
@@ -112,15 +112,7 @@ var pageClass = {
112 112
                     }
113 113
                 }
114 114
                 me.window[id ~ '-' ~ (line - state.scroll.offset)] = me.page.createChild('text');
115
-                if (find('normal', state.objects[line].type) > -1)
116
-                    me._normal_text(
117
-                            id ~ '-' ~ (line - state.scroll.offset),
118
-                            state.objects[line].text,
119
-                            state.geometry.x,
120
-                            state.geometry.y,
121
-                            );
122
-
123
-                elsif (find('selected', state.objects[line].type) > -1)
115
+                if (find('selected', state.objects[line].type) > -1)
124 116
                     me._selected_text(
125 117
                             id ~ '-' ~ (line - state.scroll.offset),
126 118
                             state.objects[line].text,
... ...
@@ -144,6 +136,15 @@ var pageClass = {
144 136
                             state.geometry.y
145 137
                         );
146 138
 
139
+                else
140
+                    me._normal_text(
141
+                            id ~ '-' ~ (line - state.scroll.offset),
142
+                            state.objects[line].text,
143
+                            state.geometry.x,
144
+                            state.geometry.y,
145
+                            );
146
+
147
+
147 148
                 if (find('end-of-line', state.objects[line].type) > -1
148 149
                 or  find('title', state.objects[line].type) > -1) {
149 150
                     state.geometry.x = state.x_base;