]> git.lyx.org Git - lyx.git/commitdiff
Fix up 6c20e5db: let PARAGRAPH_GOTO use SCROLL_TOP again
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 5 Oct 2024 13:30:22 +0000 (15:30 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 5 Oct 2024 13:30:22 +0000 (15:30 +0200)
As said, this was an experiment. It did not seem to stick.

src/BufferView.cpp

index a7348362cc0f3f537eaef1560abdd1e66dd2a238..c58766846d5456e07fe8a31354dde2bd6ada2649 100644 (file)
@@ -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