chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd89ba1
)
script: Builtin per-piece actions properly uniqueness tested
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 26 Jun 2022 01:28:46 +0000
(
02:28
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 26 Jun 2022 01:29:16 +0000
(
02:29
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index 454a992184fd795bbf23adfe3d1298b0e125a17d..57b95c7b747c0e73dfa52216b8c8608facc8ada0 100644
(file)
--- a/
templates/script.ts
+++ b/
templates/script.ts
@@
-348,9
+348,9
@@
function recompute_keybindings() {
}
all_targets.sort(pieceid_z_cmp);
let add_uo = function(targets: PieceId[] | null, uo: UoDescription) {
- uo_map[uo.def_key] = {
- targets: targets,
- ...uo
+ let currently = prep_add_uo(uo);
+ if (currently) {
+ currently.targets = targets;
};
};
if (all_targets.length) {