-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Labels
Description
Checks
- I have searched the existing issues.
LazySSH Version
0.2.1
Operating System
Windows
Description
Issue Title: Bug: Extra blank lines are inserted into ~/.ssh/config on edit (v0.2.1)
Is this a bug report or a feature request?
Bug Report
Version
Spotted in version 0.2.1.
Describe the bug
When an existing host in the ~/.ssh/config file is edited and saved through the program, unnecessary blank lines are inserted between each line of that host's configuration block. This unnecessarily increases the file size and reduces readability.
Expected Behavior
The configuration block for the host should be saved without any extra line breaks, preserving its original compact format.
Example of correct formatting:
Host example-host
HostName example-ip
Port 22
User root
Actual Behavior
A blank line is inserted between every line of the edited host block, resulting in a spaced-out, difficult-to-read configuration.
Example of the incorrect formatting after saving:
Host example-host
HostName example-ip
Port 22
User root
Adembc