We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9395071 commit a34c568Copy full SHA for a34c568
search-results.rkt
@@ -183,12 +183,18 @@
183
(send (ivy-tag-tfield) set-field-background color-white)
184
(load-image img-path))]))
185
(close-input-port in))
186
-
187
- ; scroll back to the top of the window
188
- (send txt scroll-to-position 0)
189
+
+ ; collect garbage that we've made from generating
+ ; the search results
+ (collect-garbage 'major)
190
191
(send prep-notification show #f)
192
193
+ ; set the cursor position to the very beginning
194
+ (send txt set-position 0 'same #f #t)
195
+ ; and scroll back to the top of the window
196
+ (send txt scroll-to-position 0)
197
198
; make sure the displayed images reflect any new searches
199
(send ecanvas refresh)
200
(send results-frame show #t)]))
0 commit comments