Cmap fixes (#691)
* fixed bug when switching commands * filter and searches are now reset, whenever prompt is reset * don't interrupt %-shell commands * filter and search are now correctly started and stoped on cd * movement commands now don't stop prompts * forgot shell-pipe check in delete command
This commit is contained in:
1 parent
5566f82596
commit
85aa3b9dc6
2 files changed
+111
-56
No files matched your search
@@ -495,6 +495,9 @@ func (app *app) runShell(s string, args []string, prefix string) {
|
||||
|
||||
err = cmd.Run()
|
||||
case "%":
|
||||
if app.ui.cmdPrefix == ">" {
|
||||
return
|
||||
}
|
||||
stdin, err := cmd.StdinPipe()
|
||||
if err != nil {
|
||||
log.Printf("writing stdin: %s", err)
|
||||
@@ -524,6 +527,7 @@ func (app *app) runShell(s string, args []string, prefix string) {
|
||||
|
||||
switch prefix {
|
||||
case "%":
|
||||
normal(app)
|
||||
app.cmd = cmd
|
||||
app.cmdOutBuf = nil
|
||||
app.ui.msg = ""
|
||||
|
||||
Reference in new issue
Block a user