mirror of
https://github.com/wavetermdev/inshellisense.git
synced 2026-08-05 13:43:30 -07:00
fix: add margin bottom 1 to prevent border vanish on ctrl+c
Signed-off-by: cpendery <cpendery@vt.edu>
This commit is contained in:
@@ -156,17 +156,20 @@ func (m Model) View() string {
|
||||
if showDescriptionRight {
|
||||
return lipgloss.
|
||||
NewStyle().
|
||||
MarginBottom(1).
|
||||
MarginLeft(utils.Clamp(m.userInputCursorLocation, 0, maxLeftPaddingWhenJoined)).
|
||||
Render(lipgloss.JoinHorizontal(lipgloss.Top, suggestionsView, descriptionView))
|
||||
|
||||
} else if showDescriptionLeft {
|
||||
return lipgloss.
|
||||
NewStyle().
|
||||
MarginBottom(1).
|
||||
MarginLeft(utils.Clamp(m.userInputCursorLocation-DescriptionWidth-BorderOffset, 0, maxLeftPaddingWhenJoined)).
|
||||
Render(lipgloss.JoinHorizontal(lipgloss.Top, descriptionView, suggestionsView))
|
||||
} else {
|
||||
return lipgloss.
|
||||
NewStyle().
|
||||
MarginBottom(1).
|
||||
MarginLeft(utils.Clamp(m.userInputCursorLocation, 0, maxLeftPadding)).
|
||||
Render(lipgloss.JoinVertical(lipgloss.Left, suggestionsView, descriptionView))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user