Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for full-width runes in the remaining code. #39

Merged
merged 8 commits into from Jun 13, 2018
Merged

Conversation

mum4k
Copy link
Owner

@mum4k mum4k commented May 27, 2018

  • Support alignment of text with full-width runes.
  • Generalise text trimming logic.
  • Gauge widget now supports full-width runes.
  • Skip over partial cells when diffing fake terminals.

Fixes #37

mum4k added 5 commits May 27, 2018 19:27
Don't print out partial cells (cells that don't really exist since the
previous cell contains a full-width rune).
So it can be reused in widgets.

Also adding some missing default values for options.
It contains full-width runes.
@mum4k mum4k requested a review from chipmunkie May 27, 2018 18:35
@mum4k mum4k self-assigned this May 27, 2018
@coveralls
Copy link

coveralls commented May 27, 2018

Pull Request Test Coverage Report for Build 101

  • 64 of 68 (94.12%) changed or added relevant lines in 5 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.1%) to 84.942%

Changes Missing Coverage Covered Lines Changed/Added Lines %
widgets/gauge/gauge.go 31 35 88.57%
Files with Coverage Reduction New Missed Lines %
widgets/gauge/gauge.go 1 82.97%
draw/text.go 1 96.43%
Totals Coverage Status
Change from base Build 88: -0.1%
Covered Lines: 1918
Relevant Lines: 2258

💛 - Coveralls

@mum4k mum4k changed the base branch from text-widget/6/wide-runes to master June 4, 2018 16:43
draw/text.go Outdated
b.WriteRune(r)
case om == OverrunModeTrim:
// Only write the rune if it still fits, i.e. don't cut
// full-width runes in halt.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/halt/half

@mum4k mum4k merged commit 0fb44ec into master Jun 13, 2018
@mum4k mum4k deleted the bugfix-rune-count branch June 13, 2018 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants