fix: use line numbers to prevent deleting all duplicate SSH hosts when removing one

This commit is contained in:
2026-01-04 21:34:09 +01:00
parent def2b4fa8d
commit 8f780e288c
4 changed files with 71 additions and 25 deletions

View File

@@ -74,14 +74,14 @@ type Model struct {
filteredHosts []config.SSHHost
searchMode bool
deleteMode bool
deleteHost string
deleteHost *config.SSHHost // Host to be deleted (with line number for precise targeting)
historyManager *history.HistoryManager
pingManager *connectivity.PingManager
sortMode SortMode
configFile string // Path to the SSH config file
// Application configuration
appConfig *config.AppConfig
appConfig *config.AppConfig
// Version update information
updateInfo *version.UpdateInfo