fix(sshd_config): Some bugfixes

This commit is contained in:
Myzel394 2024-09-17 23:27:09 +02:00
parent 3a0e886021
commit 7bb34c32b4
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185
2 changed files with 2 additions and 2 deletions

View File

@ -79,6 +79,6 @@ func GetOptionCompletions(
line := entry.OptionValue.Value.Raw
return option.FetchCompletions(
line,
common.CursorToCharacterIndex(cursor)-entry.OptionValue.Start.Character,
common.CursorToCharacterIndex(cursor-entry.OptionValue.Start.Character),
), nil
}

View File

@ -144,7 +144,7 @@ func addOption(
Err: errors.New(fmt.Sprintf(
"Option '%s' has already been defined on line %d",
option.Key.Key,
firstDefinedOption.Start.Line,
firstDefinedOption.Start.Line+1,
)),
})
} else {