Repository: junegunn/fzf
File: src/terminal.go (Go)

Code before:
				}
			case actChangeHeader:
				if t.changeHeader(a.a) {
					req(reqFullRedraw)
				} else {
					req(reqHeader)
				}
			case actChangeBorderLabel:
				t.borderLabelOpts.label = a.a
				if t.border != nil {
					t.borderLabel, t.borderLabelLen = t.ansiLabelPrinter(a.a, &tui.ColBorderLabel, false)
					req(reqRedrawBorderLabel)
				}
			case actChangePreviewLabel:
				t.previewLabelOpts.label = a.a
				if t.pborder != nil {
					t.previewLabel, t.previewLabelLen = t.ansiLabelPrinter(a.a, &tui.ColPreviewLabel, false)
					req(reqRedrawPreviewLabel)
				}
			case actTransform:
				body := t.executeCommand(a.a, false, true, true, false)
				actions := parseSingleActionList(strings.Trim(body, "\r\n"), func(message string) {})
				return doActions(actions)
			case actTransformBorderLabel:
				label := t.executeCommand(a.a, false, true, true, true)
				t.borderLabelOpts.label = a.a
				if t.border != nil {
					t.borderLabel, t.borderLabelLen = t.ansiLabelPrinter(label, &tui.ColBorderLabel, false)
					req(reqRedrawBorderLabel)
				}
			case actTransformPreviewLabel:
				label := t.executeCommand(a.a, false, true, true, true)
				t.previewLabelOpts.label = label
				if t.pborder != nil {
					t.previewLabel, t.previewLabelLen = t.ansiLabelPrinter(label, &tui.ColPreviewLabel, false)
					req(reqRedrawPreviewLabel)
				}
			case actChangePrompt:
				t.promptString = a.a
				t.prompt, t.promptLen = t.parsePrompt(a.a)
				req(reqPrompt)
			case actPreview:
				if !t.hasPreviewWindow() {
					updatePreviewWindow(true)
				}
				refreshPreview(a.a)
			case actRefreshPreview:
				refreshPreview(t.previewOpts.command)
			case actReplaceQuery:
				current := t.currentItem()
				if current != nil {

Review comment (suggestion):
```suggestion
				t.borderLabelOpts.label = label
```

Code after:
				header := t.executeCommand(a.a, false, true, true, false)
				if t.changeHeader(header) {
					req(reqFullRedraw)
				} else {
					req(reqHeader)
				}
			case actChangeHeader:
				if t.changeHeader(a.a) {
					req(reqFullRedraw)
				} else {
					req(reqHeader)
				}
			case actChangeBorderLabel:
				t.borderLabelOpts.label = a.a
				if t.border != nil {
					t.borderLabel, t.borderLabelLen = t.ansiLabelPrinter(a.a, &tui.ColBorderLabel, false)
					req(reqRedrawBorderLabel)
				}
			case actChangePreviewLabel:
				t.previewLabelOpts.label = a.a
				if t.pborder != nil {
					t.previewLabel, t.previewLabelLen = t.ansiLabelPrinter(a.a, &tui.ColPreviewLabel, false)
					req(reqRedrawPreviewLabel)
				}
			case actTransform:
				body := t.executeCommand(a.a, false, true, true, false)
				actions := parseSingleActionList(strings.Trim(body, "\r\n"), func(message string) {})
				return doActions(actions)
			case actTransformBorderLabel:
				label := t.executeCommand(a.a, false, true, true, true)
				t.borderLabelOpts.label = label
				if t.border != nil {
					t.borderLabel, t.borderLabelLen = t.ansiLabelPrinter(label, &tui.ColBorderLabel, false)
					req(reqRedrawBorderLabel)
				}
			case actTransformPreviewLabel:
				label := t.executeCommand(a.a, false, true, true, true)
				t.previewLabelOpts.label = label
				if t.pborder != nil {
					t.previewLabel, t.previewLabelLen = t.ansiLabelPrinter(label, &tui.ColPreviewLabel, false)
					req(reqRedrawPreviewLabel)
				}
			case actChangePrompt:
				t.promptString = a.a
				t.prompt, t.promptLen = t.parsePrompt(a.a)
				req(reqPrompt)
			case actPreview:
				if !t.hasPreviewWindow() {
					updatePreviewWindow(true)
				}
				refreshPreview(a.a)