summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context/list_renderer.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-08-18 08:28:22 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-08-28 14:21:06 +0200
commit7953f7fa865df345bcbcdf5ae566bfb828d98086 (patch)
tree30657199ee7ec7ac6b5e2d898d7c36f498fdf7ed /pkg/gui/context/list_renderer.go
parent7a8df7795c2381cb1b94411fcdd8542739026934 (diff)
Make RenderDisplayStrings return the column positions
Not used by anything yet, but we'll need it later in this branch.
Diffstat (limited to 'pkg/gui/context/list_renderer.go')
-rw-r--r--pkg/gui/context/list_renderer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/context/list_renderer.go b/pkg/gui/context/list_renderer.go
index 40562a599..cca5a6c77 100644
--- a/pkg/gui/context/list_renderer.go
+++ b/pkg/gui/context/list_renderer.go
@@ -23,7 +23,7 @@ func (self *ListRenderer) renderLines(startIdx int, endIdx int) string {
if self.getColumnAlignments != nil {
columnAlignments = self.getColumnAlignments()
}
- lines := utils.RenderDisplayStrings(
+ lines, _ := utils.RenderDisplayStrings(
self.getDisplayStrings(startIdx, utils.Min(endIdx, self.list.Len())),
columnAlignments)
return strings.Join(lines, "\n")