From cc951cd4111a3a82d34235cc7efbcd87b226d215 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Thu, 10 Aug 2023 06:17:29 -0400 Subject: [PATCH] Comments --- src/frontends/qt/GuiView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp index c02c479d16..764921c460 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; } -- 2.39.5