mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-15 11:51:13 +00:00
Merge pull request #13120 from overleaf/dk-drawselection-cm-patch
[cm6] apply cm patch for drawSelection bug GitOrigin-RevId: 3adfcdbea4cc18d2cc197c153323fc62bafc364f
This commit is contained in:
parent
ead1d7d91f
commit
b35db4827d
1 changed files with 4 additions and 1 deletions
|
@ -173,7 +173,10 @@ function rectanglesForRange(
|
|||
: drawForWidget(endBlock, true)
|
||||
const between = []
|
||||
|
||||
if ((visualStart || startBlock).to < (visualEnd || endBlock).from - 1)
|
||||
if (
|
||||
(visualStart || startBlock).to <
|
||||
(visualEnd || endBlock).from - (visualStart && visualEnd ? 1 : 0)
|
||||
)
|
||||
between.push(piece(leftSide, top.bottom, rightSide, bottom.top))
|
||||
else if (
|
||||
top.bottom < bottom.top &&
|
||||
|
|
Loading…
Reference in a new issue