[LyX/master] Fix up 6c20e5db: let PARAGRAPH_GOTO use SCROLL_TOP again

Jean-Marc Lasgouttes lasgouttes at lyx.org
Sat Oct 5 13:49:54 UTC 2024


commit 4d89b2903b5fc51fd6e1b8efe9a9ed46113b34d7
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Sat Oct 5 15:30:22 2024 +0200

    Fix up 6c20e5db: let PARAGRAPH_GOTO use SCROLL_TOP again
    
    As said, this was an experiment. It did not seem to stick.
---
 src/BufferView.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


More information about the lyx-cvs mailing list