Skip to content

Micro crashes with a custom keybind that executes 2 terminal commands #2931

@redsti-github

Description

@redsti-github

Description of the problem or steps to reproduce

add a keybind that looks like this (any keybind that runs 2 command:term ... commands should work):

   "Ctrl-w": "command:term echo a,command:term echo b"

When you run the keybind (in this case, pressing Ctrl-w), micro crashes with the following output:

Micro encountered an error: runtime.errorString runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x557f42eaa8d6)
runtime/panic.go:259 (0x557f42eaa8a6)
github.com/zyedidia/micro/internal/action/bufpane.go:146 (0x557f433081f8)
github.com/zyedidia/micro/internal/action/bufpane.go:31 (0x557f43308036)
github.com/zyedidia/micro/internal/action/bufpane.go:449 (0x557f43309459)
github.com/zyedidia/micro/internal/action/bufpane.go:365 (0x557f43308f7c)
github.com/zyedidia/micro/internal/action/tab.go:254 (0x557f43318f18)
github.com/zyedidia/micro/internal/action/tab.go:136 (0x557f4331885c)
github.com/zyedidia/micro/cmd/micro/micro.go:445 (0x557f4333e1a7)
github.com/zyedidia/micro/cmd/micro/micro.go:382 (0x557f4333dc12)
runtime/proc.go:250 (0x557f42e97353)
runtime/asm_amd64.s:1594 (0x557f42ec5e41)
 
If you can reproduce this error, please report it at https://github.com/zyedidia/micro/issues

Specifications

Commit hash: 2.0.11
OS: Debian 12
Terminal: bash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions