Fix crash on startup when no custom key binding had been set (ever)

This commit is contained in:
Jonatan Heyman 2025-10-03 12:12:14 +02:00
parent 8f93064cd3
commit ba9d823040
2 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,11 @@
Here are the most notable changes in each release. For a more detailed list of changes, see the [Github Releases page](https://github.com/heyman/heynote/releases).
## 2.6.0 (not yet released)
## 2.6.1
- Fix crash when no custom key binding had been set
## 2.6.0
- Add setting for rendering white-space (spaces as dots and tabs as arrows)
- Show key bindings in Command Palette

View File

@ -209,7 +209,7 @@ function keymapFromSpec(specs, editor) {
function getCombinedKeymapSpec(keymapName, userKeymap) {
return [
...userKeymap,
...(userKeymap ? userKeymap : []),
...(keymapName === "emacs" ? [...EMACS_KEYMAP, ...DEFAULT_KEYMAP] : [...DEFAULT_NOT_EMACS_KEYMAP, ...DEFAULT_KEYMAP]),
]
}