logseq / logseq

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap
https://logseq.com
GNU Affero General Public License v3.0
30.07k stars 1.76k forks source link

Cursor position in code block // 代码块光标位置错误 #11259

Open ADanglingCat opened 3 weeks ago

ADanglingCat commented 3 weeks ago

Search first

What Happened?

image

在代码块里, 鼠标单击第6行, 光标却跑到第8行了

Reproduce the Bug

  1. 创建如下代码块
    
    import static org.junit.jupiter.api.Assertions.*;
    import org.junit.jupiter.api.Test;

@Test void groupedAssertions() { // In a grouped assertion all assertions are executed, and any // failures will be reported together. assertAll("person", () -> assertEquals("John", person.getFirstName()), () -> assertEquals("Doe", person.getLastName()) ); }


2. 鼠标点击某一行

### Expected Behavior

光标正确聚焦到对应的行

### Screenshots

_No response_

### Desktop or Mobile Platform Information

App Version: 0.10.9
Git Revision: c67b8b5
Platform: Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML like Gecko) Logseq/0.10.9 Chrome/118.0.5993.159 Electron/27.1.3 Safari/537.36
Language: zh-CN
Plugins: logseq-journals-calendar (v0.10.10), logseq-markdown-table (v1.8.0), logseq-catppuccin (v0.6.2), logseq-bonofix-theme (v3.10.4), logseq-emoji-picker-fork (v0.0.6), logseq-unsplash (v1.0.0), logseq-tocgen (v2.13.0), logseq-simpread (v0.1.5), logseq-dev-theme (v1.26.17), logseq-image-uploader (v0.0.12)

### Additional Context

_No response_

### Are you willing to submit a PR? If you know how to fix the bug.

- [ ] I'm willing to submit a PR (Thank you!)
andelf commented 3 weeks ago

Unable to reproduce this.

抱歉无法复现, 请确认: