[LyX/master] Comments
Scott Kostyshak
skostysh at lyx.org
Thu Aug 10 09:04:59 UTC 2023
commit cc951cd4111a3a82d34235cc7efbcd87b226d215
Author: Scott Kostyshak <skostysh at lyx.org>
Date: Thu Aug 10 06:17:29 2023 -0400
Comments
---
src/frontends/qt/GuiView.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp
index c02c479..764921c 100644
--- a/src/frontends/qt/GuiView.cpp
+++ b/src/frontends/qt/GuiView.cpp
@@ -4880,8 +4880,13 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
? Qt::Vertical : Qt::Horizontal);
TabWorkArea * twa = addTabWorkArea();
GuiWorkArea * wa = twa->addWorkArea(*doc_buffer, *this);
+
+ // set cursor to same position as current view.
+ // TODO: would be good to *scroll* to same position also
+ // so that the display is the same (#12689)
DocIterator cur = bv->cursor();
wa->bufferView().moveToPosition(cur.pit(), cur.pos(), 0, 0);
+
setCurrentWorkArea(wa);
break;
}
More information about the lyx-cvs
mailing list