coteditor / CotEditor

Lightweight Plain-Text Editor for macOS
https://coteditor.com
Other
6.38k stars 431 forks source link

Editing huge file fails #1509

Closed matzepf closed 1 year ago

matzepf commented 1 year ago

Description

It is me again, the guy with the huge files: 12.3 MB, 880k lines. With the current version I cannot go below line 606060.

To Reproduce

  1. Create a file with > 610k lines; each line has 13 characters in my case.
  2. Open file
  3. Type Command Down Arrow → Status bar says current line ~880k but start of file is shown (see fig 1) Drag scroll bar all down → View ends with line 606060 (see fig 2) HugeFile1 HugeFile2

Expected behavior

No response

CotEditor version

4.5.8 (574)

macOS version

13.5 (Build 22G74)

Additional context

Installed the update 4.5.8 today; worked fine yesterday.

matzepf commented 1 year ago

Re-checking on another machine with 4.5.7: Works fine.

Old
matzepf commented 1 year ago

Problem seems to fixed in Version 4.6.1 (591).

1024jp commented 1 year ago

Thank you for the update. Since I've tweaked the editor on CotEditor 4.6.0 and also Apple improved the text component in macOS 14 SDK, the issue can disappear on CotEditor 4.6.0. However, feel free to post again if you face that issue again.