]> git.lyx.org Git - features.git/commitdiff
Comments
authorScott Kostyshak <skostysh@lyx.org>
Thu, 10 Aug 2023 10:17:29 +0000 (06:17 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Thu, 10 Aug 2023 10:17:29 +0000 (06:17 -0400)
src/frontends/qt/GuiView.cpp

index c02c479d16d8f174fab7cb9565c1b24e16fd6f29..764921c46000eb55b45120af6aca4119a760c529 100644 (file)
@@ -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;
                }