mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-23 23:39:02 +01:00
Fix bug where cd-ing wouldn't work if the changeDir contained a space
This commit is contained in:
parent
166f1eef87
commit
588e2f4405
@ -390,7 +390,7 @@ func (m model) View() string {
|
||||
SELECTED_COMMAND = m.tableEntries[m.table.Cursor()].Command
|
||||
if m.selected == SelectedWithChangeDir {
|
||||
changeDir := m.tableEntries[m.table.Cursor()].CurrentWorkingDirectory
|
||||
SELECTED_COMMAND = "cd " + changeDir + " && " + SELECTED_COMMAND
|
||||
SELECTED_COMMAND = "cd \"" + changeDir + "\" && " + SELECTED_COMMAND
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user