From: Jean-Marc Lasgouttes Date: Sat, 5 Oct 2024 13:30:22 +0000 (+0200) Subject: Fix up 6c20e5db: let PARAGRAPH_GOTO use SCROLL_TOP again X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4d89b2903b5fc51fd6e1b8efe9a9ed46113b34d7;p=lyx.git Fix up 6c20e5db: let PARAGRAPH_GOTO use SCROLL_TOP again As said, this was an experiment. It did not seem to stick. --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index a7348362cc..c58766846d 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1676,7 +1676,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) success = setCursorFromEntries({id, pos}, {id_end, pos_end}); } - if (success && scrollToCursor(d->cursor_, SCROLL_TOGGLE)) + if (success && scrollToCursor(d->cursor_, SCROLL_TOP)) dr.screenUpdate(Update::Force); } else { // Switch to other buffer view and resend cmd