You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a final newline at the end of the file, as is often standard to do, you will find that you can move your cursor past the newline character on to the next line. This is a bit of an illusion for convenience, as there is no actual character at that position, but makes it possible to use equivalently a or i to begin entering new characters on the line-after-end.
With visible whitespace on, moving the cursor to that phantom not-character shows the whitespace symbol for a space, even though it is not in fact a space. We should probably clean this up with a special-case whitespace character for "null" or some-such. Perhaps ␀, the unicode character for null. We could also go with ~ as this is the character in the gutter to help distinguish this phantom line already.
Reproduction Steps
Configure helix to show visible whitespace
Open hx without any arguments
Observe that the scratch buffer consists of exactly one newline character, located on the first line
Move the cursor to the next line with j
Observe that the whitespace character for this non-existent character is that for space
Summary
If you have a final newline at the end of the file, as is often standard to do, you will find that you can move your cursor past the newline character on to the next line. This is a bit of an illusion for convenience, as there is no actual character at that position, but makes it possible to use equivalently
a
ori
to begin entering new characters on the line-after-end.With visible whitespace on, moving the cursor to that phantom not-character shows the whitespace symbol for a space, even though it is not in fact a space. We should probably clean this up with a special-case whitespace character for "null" or some-such. Perhaps
␀
, the unicode character for null. We could also go with~
as this is the character in the gutter to help distinguish this phantom line already.Reproduction Steps
hx
without any argumentsj
Helix log
N/A
Platform
Linux
Terminal Emulator
wezterm 20220427-144728-efcc4b48
Helix Version
helix 22.05-dev (477b88e)
The text was updated successfully, but these errors were encountered: