Skip to content

Commit

Permalink
Add count of redirects to status bar message
Browse files Browse the repository at this point in the history
  • Loading branch information
1buran committed Apr 3, 2024
1 parent 1cfe512 commit d7fcef4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,8 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.checkboxes[checkboxIndex(autoformat)].IsOn())
sbar.Info("request is executed, response taken")
if len(redirects) > 0 {
sbar.Warning("redirects: " + strings.Join(redirects, " → "))
sbar.Warning(
strconv.Itoa(len(redirects)) + " redirects: " + strings.Join(redirects, " → "))
}

case tea.WindowSizeMsg:
Expand Down

0 comments on commit d7fcef4

Please sign in to comment.