Skip to content

Error on custom keybinding #2307

@Sander-Zeeman

Description

@Sander-Zeeman

Description of the problem or steps to reproduce

Hello!

I was messing around with custom keybindings inside Micro and ran into a runtime error.
In the end, the action I tried to bind was completely unnecessary, but I thought I'd do my part and report it anyway!

When I bound the following action inside micro/bindings.json:
"Ctrl-b": "command:term clear,command:term"
The following error + stack trace appears

Micro encountered an error: runtime.errorString runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:199 (0x55b9a0075b40)
runtime/panic.go:198 (0x55b9a007597d)
github.com/zyedidia/micro/internal/action/command.go:808 (0x55b9a05bc789)
github.com/zyedidia/micro/internal/action/command.go:891 (0x55b9a05bcef7)
github.com/zyedidia/micro/internal/action/command.go:94 (0x55b9a05c4bf0)
github.com/zyedidia/micro/internal/action/bufpane.go:394 (0x55b9a05b4c38)
github.com/zyedidia/micro/internal/action/bufpane.go:122 (0x55b9a05c4844)
github.com/zyedidia/micro/internal/action/bufpane.go:381 (0x55b9a05b4910)
github.com/zyedidia/micro/internal/action/bufpane.go:308 (0x55b9a05b4864)
github.com/zyedidia/micro/internal/action/tab.go:246 (0x55b9a05c1fbe)
github.com/zyedidia/micro/internal/action/tab.go:136 (0x55b9a05c17be)
github.com/zyedidia/micro/cmd/micro/micro.go:343 (0x55b9a05e5132)
github.com/zyedidia/micro/cmd/micro/micro.go:297 (0x55b9a05e4ca8)
runtime/proc.go:203 (0x55b9a0062246)
runtime/asm_amd64.s:1357 (0x55b9a008e551)

If you can reproduce this error, please report it at https://github.com/zyedidia/micro/issues

Press enter to continue

Specifications

Commit hash: 6998cb5
OS: Ubuntu-20.04 on WSLg, Windows 11
Terminal: I was unable to find which terminal WSL uses by default, but that's the one. My apologies for not being more specific, but I'm not yet very familiar with WSL.

I've really been enjoying using Micro, thank you very much for developing it!

-Sander

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions