Fixup 04ece4f0d6: fix cursor position

This commit is contained in:
Jean-Marc Lasgouttes 2023-02-20 17:14:03 +01:00
parent 39fddce26e
commit a3d58d2884

View File

@ -424,7 +424,7 @@ void InsetCollapsible::cursorPos(BufferView const & bv,
switch (geometry(bv)) {
case LeftButton:
x += dimensionCollapsed(bv).wid;
x += dimensionCollapsed(bv).wid - leftOffset(&bv) / 2;
break;
case TopButton: {
y += dimensionCollapsed(bv).des + textdim.asc;