Line rendered is off by one #10697
-
SummaryWhen I open any file, the editor renders the file starting on line 2 instead of line 1. The cursor itself is on line 1, because moving the cursor around causes each cell to be redrawn with the correct underlying data as is shown in this recording: Screen.Recording.2024-05-06.at.09.31.20.movThis is on mac os Sonoma. I installed helix via ❯ hx --version
helix 24.3 (2cadec0b) # The version number appears to be a typo? Brew reports it as 24.03. Reinstalling the editor did not address this. Running the Please let me know what additional information I can provide. Reproduction StepsI tried this:
I expected this to happen: The file opens starting at line 1. The contents of each cell reflect the content of the file at that position. Instead, this happened: The file opens at line 1, but the first line rendered is line 2. The contents of each cell are actually the corresponding cell from the line below. Helix log~/.cache/helix/helix.log
PlatformmacOS Terminal EmulatoriTerm2 Build 3.4.23 Installation Methodbrew Helix Version24.03 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you reproduce this is any other terminal emulator? I can't reproduce this even when running iterm2 |
Beta Was this translation helpful? Give feedback.
Great question--it seems to work fine in mac OS' provided
Terminal
app.Based on this, I was able to narrow down the differences until I found the fix. In
Terminal
, theTERM
environment variable was set toxterm-256color
while iniTerm2
it was set toansi
. I don't know how or why it was set to that, but switching it toxterm-256color
addressed the problem. I'd be curious to understand the difference between the two settings, but I'm just happy to have my editor back.