1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

Fix the title and text (and variable names) of the Discard Changes prompt

The title was saying "Unstage lines", which was just wrong. The text said
"Delete lines", which can be seen as a bit misleading; we are only discarding
the changes to the selected lines, not deleting the lines themselves.

For consistency, rename the config variable skipUnstageLineWarning accordingly.
This commit is contained in:
Stefan Haller
2023-04-17 17:32:10 +02:00
parent 6ecd691223
commit 51a558040d
10 changed files with 32 additions and 32 deletions

View File

@ -34,8 +34,8 @@ func (self *Common) ContinueOnConflictsResolved() {
func (self *Common) ConfirmDiscardLines() {
self.t.ExpectPopup().Confirmation().
Title(Equals("Unstage lines")).
Content(Contains("Are you sure you want to delete the selected lines")).
Title(Equals("Discard change")).
Content(Contains("Are you sure you want to discard this change")).
Confirm()
}