From: Scott Kostyshak Date: Thu, 10 Aug 2023 10:17:29 +0000 (-0400) Subject: Comments X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cc951cd4111a3a82d34235cc7efbcd87b226d215;p=features.git Comments --- 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; }