commit - e6de56ed070a2b1640252ec197505a6ee117e27b
commit + 6fa0451487d8d7e3a13171f5de74a72efda2d725
blob - 7350b40f8f6e62c104a85fb5ad448b4c551daa60
blob + 872ee94dbec3db699a2cf61de37e95b09a443ba7
--- mymenu.1
+++ mymenu.1
keybinding is a more elegant way to change, at runtime, the behaviour
of the first completion.
.It Button1
-Confirm the clicked item
+Clicking on the prompt area closes mymenu, clicking on an item will
+confirm it.
.It Button3
-Confirm but keep looping (if enabled) the clicked item, like C-m
+Clicking on the prompt area closes mymenu, clicking on an item will
+confirm but keep looping (if enabled) the clicked item, like C-m
.It Button4,Button5 / scroll
Scroll through the completions (without changing the selection)
.El
blob - fc0ca277eea8f8ac8e61306df6c6b45fb9d2cdb5
blob + f676904bca0a28e1751092ddb963f2d3e5847eb6
--- mymenu.1.md
+++ mymenu.1.md
Button1
-> Confirm the clicked item
+> Clicking on the prompt area closes mymenu, clicking on an item will
+> confirm it.
Button3
-> Confirm but keep looping (if enabled) the clicked item, like C-m
+> Clicking on the prompt area closes mymenu, clicking on an item will
+> confirm but keep looping (if enabled) the clicked item, like C-m
Button4,Button5 / scroll
blob - c6c1662dbc4a865084204c7490ecf15a6175e16f
blob + a65022d57f4b3d64d7edd68e55405515ca0447f9
--- mymenu.c
+++ mymenu.c
return NO_OP;
if (offset < cs->completions[selected].offset)
- return NO_OP;
+ return EXIT;
/* skip the first entry */
for (selected += 1; selected < cs->length; ++selected) {