umijs / dumi

📖 Static Site Generator for component library development
https://d.umijs.org
MIT License
3.61k stars 1.18k forks source link

bug: 开启 showLineNum时, 光标错位 #2163

Closed Young6-me closed 4 months ago

Young6-me commented 4 months ago

Version

2.4.5

OS Version

mac

Node.js Version

16

Browser Version

chrome 126

Link to minimal reproduction

Steps to reproduce

image

What is expected?

配置showLineNum = true后,实时编辑预览 光标正常

What is actually happening?

配置showLineNum = true后,实时编辑预览 光标错位

Any additional comments? (optional)

No response