mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-17 01:42:45 +02:00
add FIXME note about trimming the trailing newline upon confirming in a prompt panel
This commit is contained in:
@ -71,6 +71,8 @@ func createPromptPanel(g *gocui.Gui, currentView *gocui.View, title string, init
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleClose := func(gui *gocui.Gui, view *gocui.View) error {
|
handleClose := func(gui *gocui.Gui, view *gocui.View) error {
|
||||||
|
// FIXME: trimming a newline that is no doubt caused by the enter keybinding
|
||||||
|
// on the editor. We should just define a new editor that doesn't do that
|
||||||
*initialValue = []byte(strings.TrimSpace(view.Buffer()))
|
*initialValue = []byte(strings.TrimSpace(view.Buffer()))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user