Skip to content

Commit 75f3e8f

Browse files
Merge pull request #433 from Seanstoppable/highlightline
Move closing region tag to the end of the line. Closes #431
2 parents e6a55d5 + a5f98c1 commit 75f3e8f

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

modules/gitter/widget.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (widget *Widget) contentFrom(messages []Message) string {
113113
var str string
114114
for idx, message := range messages {
115115
str = str + fmt.Sprintf(
116-
`["%d"][""][%s] [blue]%s [lightslategray]%s: [%s]%s [aqua]%s`,
116+
`["%d"][%s] [blue]%s [lightslategray]%s: [%s]%s [aqua]%s[""]`,
117117
idx,
118118
widget.rowColor(idx),
119119
message.From.DisplayName,

modules/hackernews/widget.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (widget *Widget) contentFrom(stories []Story) string {
114114
for idx, story := range stories {
115115
u, _ := url.Parse(story.URL)
116116
str = str + fmt.Sprintf(
117-
`["%d"][""][%s] [yellow]%d. [%s]%s [blue](%s)`,
117+
`["%d"][%s] [yellow]%d. [%s]%s [blue](%s)[""]`,
118118
idx,
119119
widget.rowColor(idx),
120120
idx+1,

modules/jenkins/widget.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (widget *Widget) contentFrom(view *View) string {
108108

109109
if validID.MatchString(job.Name) {
110110
str = str + fmt.Sprintf(
111-
`["%d"][""][%s] [%s]%-6s[white]`,
111+
`["%d"][%s] [%s]%-6s[white][""]`,
112112
idx,
113113
widget.rowColor(idx),
114114
widget.jobColor(&job),

modules/jira/widget.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,15 @@ func (widget *Widget) openItem() {
122122

123123
func (widget *Widget) unselect() {
124124
widget.selected = -1
125+
widget.display()
125126
}
126127

127128
func (widget *Widget) contentFrom(searchResult *SearchResult) string {
128129
str := " [red]Assigned Issues[white]\n"
129130

130131
for idx, issue := range searchResult.Issues {
131132
fmtStr := fmt.Sprintf(
132-
`["%d"][""][%s] [%s]%-6s[white] [green]%-10s[white] [yellow][%s][white] [%s]%s`,
133+
`["%d"][%s] [%s]%-6s[white] [green]%-10s[white] [yellow][%s][white] [%s]%s[""]`,
133134
idx,
134135
widget.rowColor(idx),
135136
widget.issueTypeColor(&issue),

modules/todo/display.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (widget *Widget) formattedItemLine(idx int, item *checklist.ChecklistItem,
5252
}
5353

5454
str := fmt.Sprintf(
55-
`["%d"][""][%s:%s]|%s| %s[white]`,
55+
`["%d"][%s:%s]|%s| %s[white][""]`,
5656
idx,
5757
foreColor,
5858
backColor,

0 commit comments

Comments
 (0)