mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
fix(sshd_config): Some bugfixes
This commit is contained in:
parent
3a0e886021
commit
7bb34c32b4
@ -79,6 +79,6 @@ func GetOptionCompletions(
|
|||||||
line := entry.OptionValue.Value.Raw
|
line := entry.OptionValue.Value.Raw
|
||||||
return option.FetchCompletions(
|
return option.FetchCompletions(
|
||||||
line,
|
line,
|
||||||
common.CursorToCharacterIndex(cursor)-entry.OptionValue.Start.Character,
|
common.CursorToCharacterIndex(cursor-entry.OptionValue.Start.Character),
|
||||||
), nil
|
), nil
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,7 @@ func addOption(
|
|||||||
Err: errors.New(fmt.Sprintf(
|
Err: errors.New(fmt.Sprintf(
|
||||||
"Option '%s' has already been defined on line %d",
|
"Option '%s' has already been defined on line %d",
|
||||||
option.Key.Key,
|
option.Key.Key,
|
||||||
firstDefinedOption.Start.Line,
|
firstDefinedOption.Start.Line+1,
|
||||||
)),
|
)),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user