+2
-15
lines changedFilter options
+2
-15
lines changed Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ package helpers
3
3
import (
4
4
goContext "context"
5
5
"fmt"
6
+
"strings"
6
7
7
8
"github.com/jesseduffield/lazygit/pkg/gui/style"
8
9
"github.com/jesseduffield/lazygit/pkg/gui/types"
@@ -168,7 +169,7 @@ func (self *ConfirmationHelper) CreatePopupPanel(ctx goContext.Context, opts typ
168
169
confirmationView.RenderTextArea()
169
170
} else {
170
171
self.c.ResetViewOrigin(confirmationView)
171
-
self.c.SetViewContent(confirmationView, style.AttrBold.Sprint(opts.Prompt))
172
+
self.c.SetViewContent(confirmationView, style.AttrBold.Sprint(strings.TrimSpace(opts.Prompt)))
172
173
}
173
174
174
175
self.setKeyBindings(cancel, opts)
Original file line number Diff line number Diff line change
@@ -405,20 +405,6 @@ func TestWrapViewLinesToWidth(t *testing.T) {
405
405
expectedWrappedLinesIndices: []int{0, 1, 2},
406
406
expectedOriginalLinesIndices: []int{0, 1, 2},
407
407
},
408
-
{
409
-
name: "Avoid blank line at end if not editable",
410
-
wrap: true,
411
-
editable: false,
412
-
text: "First\nSecond\nThird\n",
413
-
width: 10,
414
-
expectedWrappedLines: []string{
415
-
"First",
416
-
"Second",
417
-
"Third",
418
-
},
419
-
expectedWrappedLinesIndices: []int{0, 1, 2},
420
-
expectedOriginalLinesIndices: []int{0, 1, 2},
421
-
},
422
408
{
423
409
name: "Keep blank line at end if editable",
424
410
wrap: true,
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4