Skip to content

Fix horizontal scrolling text with wide characters in TexView widget#410

Closed
gnojus wants to merge 1 commit intorivo:masterfrom
gnojus:scroll_fix
Closed

Fix horizontal scrolling text with wide characters in TexView widget#410
gnojus wants to merge 1 commit intorivo:masterfrom
gnojus:scroll_fix

Conversation

@gnojus
Copy link
Copy Markdown

@gnojus gnojus commented Feb 22, 2020

Fixes scrolling lines with double with characters. Example, where the problem occurs without this fix:

package main

import (
	"github.com/rivo/tview"
)

func main() {
	app := tview.NewApplication()
	t := tview.NewTextView().SetWrap(false)

	t.SetText("line 1 😀😀 q w e r t y a b c\nline 2 ---- q w e r t y a b c")

	if err := app.SetRoot(t, false).SetFocus(t).Run(); err != nil {
		panic(err)
	}
}

Maybe a special character should be added instead of invisible half of double with character? Because now they are disappearing at the edges. Like this (though vim and nano use >).

@rivo
Copy link
Copy Markdown
Owner

rivo commented Aug 26, 2023

See #467 (comment)

@rivo rivo closed this Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants