mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-05 04:36:07 +00:00
Fix end of buffer character (#491)
This commit is contained in:
@@ -1138,10 +1138,7 @@ func (m Model) View() string {
|
||||
s.WriteString(prompt)
|
||||
displayLine++
|
||||
|
||||
if m.ShowLineNumbers {
|
||||
lineNumber := m.style.EndOfBuffer.Render(string(m.EndOfBufferCharacter))
|
||||
s.WriteString(lineNumber)
|
||||
}
|
||||
s.WriteString(m.style.EndOfBuffer.Render(string(m.EndOfBufferCharacter)))
|
||||
s.WriteRune('\n')
|
||||
}
|
||||
|
||||
|
||||
+16
-16
@@ -478,11 +478,11 @@ func TestView(t *testing.T) {
|
||||
},
|
||||
expected: heredoc.Doc(`
|
||||
> the first line
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
> ~
|
||||
> ~
|
||||
> ~
|
||||
> ~
|
||||
> ~
|
||||
`),
|
||||
},
|
||||
{
|
||||
@@ -497,9 +497,9 @@ func TestView(t *testing.T) {
|
||||
> the first line
|
||||
> the second line
|
||||
> the third line
|
||||
>
|
||||
>
|
||||
>
|
||||
> ~
|
||||
> ~
|
||||
> ~
|
||||
`),
|
||||
},
|
||||
{
|
||||
@@ -547,11 +547,11 @@ func TestView(t *testing.T) {
|
||||
},
|
||||
expected: heredoc.Doc(`
|
||||
> the first line
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
> *
|
||||
> *
|
||||
> *
|
||||
> *
|
||||
> *
|
||||
`),
|
||||
},
|
||||
{
|
||||
@@ -567,9 +567,9 @@ func TestView(t *testing.T) {
|
||||
> the first line
|
||||
> the second line
|
||||
> the third line
|
||||
>
|
||||
>
|
||||
>
|
||||
> *
|
||||
> *
|
||||
> *
|
||||
`),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user