mirror of https://codeberg.org/cage/tinmop/
- fixed 'adjust-rows-select-last';
- rewinded selected row to first one when a new gemin page is loaded.
This commit is contained in:
parent
40f6f0642a
commit
f9f5a868b3
|
@ -238,9 +238,10 @@
|
|||
(with-accessors ((rows rows)) window
|
||||
(when rows
|
||||
(let ((height (win-height-no-border window)))
|
||||
(when (>= (rows-length window) height)
|
||||
(select-row window (- (rows-length window)
|
||||
height))))))
|
||||
(if (>= (rows-length window) height)
|
||||
(select-row window (- (rows-length window)
|
||||
height))
|
||||
(select-first-row window)))))
|
||||
window)
|
||||
|
||||
(defmethod adjust-selected-rows ((object row-oriented-widget) (strategy function))
|
||||
|
|
|
@ -1230,8 +1230,9 @@
|
|||
(progn
|
||||
(setf (gemini-viewer:gemini-metadata-source-file window-metadata) source)
|
||||
(setf (gemini-viewer:gemini-metadata-links window-metadata) links)
|
||||
(funcall (message-window:adjust-rows-strategy win) win)
|
||||
(line-oriented-window:update-all-rows win new-rows)))))))
|
||||
(line-oriented-window:update-all-rows win new-rows)
|
||||
(line-oriented-window:adjust-selected-rows specials:*message-window*
|
||||
#'line-oriented-window:adjust-rows-select-first)))))))
|
||||
|
||||
(defmethod process-event ((object gemini-got-line-event))
|
||||
(with-accessors ((response payload)
|
||||
|
|
Loading…
Reference in New Issue