From bd92fdbabe0f51114ed4dd7f85434e326f39fdc8 Mon Sep 17 00:00:00 2001 From: Jakub Sobon Date: Sun, 27 May 2018 19:40:08 +0100 Subject: [PATCH 1/3] Adding badges for goreportcard and license. Fixes #31 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8b287c2..dc7c390 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ [![Doc Status](https://godoc.org/github.com/mum4k/termdash?status.png)](https://godoc.org/github.com/mum4k/termdash) [![Build Status](https://travis-ci.org/mum4k/termdash.svg?branch=master)](https://travis-ci.org/mum4k/termdash) [![Coverage Status](https://coveralls.io/repos/github/mum4k/termdash/badge.svg?branch=master)](https://coveralls.io/github/mum4k/termdash?branch=master) +[![Go Report Card](https://goreportcard.com/badge/github.com/mum4k/termdash)](https://goreportcard.com/report/github.com/mum4k/termdash) +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/gojp/goreportcard/blob/master/LICENSE) # termdash From 39690095738565559edfe8c4196142aa52da8792 Mon Sep 17 00:00:00 2001 From: Jakub Sobon Date: Sun, 27 May 2018 19:41:21 +0100 Subject: [PATCH 2/3] Correcting link to the license file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dc7c390..a7bfff7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Build Status](https://travis-ci.org/mum4k/termdash.svg?branch=master)](https://travis-ci.org/mum4k/termdash) [![Coverage Status](https://coveralls.io/repos/github/mum4k/termdash/badge.svg?branch=master)](https://coveralls.io/github/mum4k/termdash?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/mum4k/termdash)](https://goreportcard.com/report/github.com/mum4k/termdash) -[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/gojp/goreportcard/blob/master/LICENSE) +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/mum4k/termdash/blob/master/LICENSE) # termdash From 1c17cb36f2f503291baef654e70ee2d6fd9fa752 Mon Sep 17 00:00:00 2001 From: Jakub Sobon Date: Mon, 4 Jun 2018 16:16:51 +0100 Subject: [PATCH 3/3] Updated doc as per comment. --- cell/cell.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cell/cell.go b/cell/cell.go index abbbb53..7d3bb96 100644 --- a/cell/cell.go +++ b/cell/cell.go @@ -155,8 +155,8 @@ func (b Buffer) IsPartial(p image.Point) (bool, error) { } } -// RemWidth returns the remaining with (horizontal cells) available from and -// inclusive of the specified point. +// RemWidth returns the remaining width (horizontal row of cells) available +// from and inclusive of the specified point. func (b Buffer) RemWidth(p image.Point) (int, error) { size := b.Size() ar, err := area.FromSize(size)