-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Description
If you use the 'Quit' action to close the split frame, it doesn't crash.
-
Minimal reproducer ( may require multiple attempts ):
- VSplit ( or alternative )
- Unsplit ( focusing split frame )
- Unsplit ( focusing tab )
- HSplit ( or alternative )
-
Error message:
Micro encountered an error: runtime.errorString runtime error: invalid memory address or nil pointer dereference runtime/panic.go:262 (0x6a2ed8) runtime/panic.go:261 (0x6a2ea8) github.com/micro-editor/micro/v2/internal/views/splits.go:265 (0xb23f13) github.com/micro-editor/micro/v2/internal/views/splits.go:436 (0xb24f0a) github.com/micro-editor/micro/v2/internal/action/bufpane.go:653 (0xb4fce5) github.com/micro-editor/micro/v2/internal/action/bufpane.go:680 (0xb47df4) github.com/micro-editor/micro/v2/internal/action/actions.go:2026 (0xb47cfb) github.com/micro-editor/micro/v2/internal/action/bufpane.go:567 (0xb4f55a) github.com/micro-editor/micro/v2/internal/action/tab.go:224 (0xb4d931) github.com/micro-editor/micro/v2/internal/action/bufpane.go:183 (0xb4d759) github.com/micro-editor/micro/v2/internal/action/bufpane.go:33 (0xb4d6f1) github.com/micro-editor/micro/v2/internal/action/bufpane.go:546 (0xb4f2f9) github.com/micro-editor/micro/v2/internal/action/bufpane.go:464 (0xb4ecbc) github.com/micro-editor/micro/v2/internal/action/tab.go:337 (0xb6008a) github.com/micro-editor/micro/v2/internal/action/tab.go:141 (0xb5f193) github.com/micro-editor/micro/v2/cmd/micro/micro.go:542 (0xb94f6a) github.com/micro-editor/micro/v2/cmd/micro/micro.go:481 (0xb94ab0) internal/runtime/atomic/types.go:194 (0x68e45d) runtime/asm_amd64.s:1700 (0x6ca061) -
A little demonstration:
wezterm-gui_JmPUM8t2Vc.mp4
Environment
- Version: 2.0.16-dev.15 ( 3a7403b )
- OS: Windows 10 22H2
- Terminal: WezTerm/Conhost/Alacritty