1
0
Fork 0
forked from wry/wry

config: allow disabling the primary selection

This commit is contained in:
Julian Orth 2025-07-20 11:18:32 +02:00
parent e70be28e22
commit 9c165ab56c
13 changed files with 63 additions and 2 deletions

View file

@ -136,6 +136,7 @@ impl Parser for ConfigParser<'_> {
show_bar,
focus_history_val,
),
(middle_click_paste,),
) = ext.extract((
(
opt(val("keymap")),
@ -185,6 +186,7 @@ impl Parser for ConfigParser<'_> {
recover(opt(bol("show-bar"))),
opt(val("focus-history")),
),
(recover(opt(bol("middle-click-paste"))),),
))?;
let mut keymap = None;
if let Some(value) = keymap_val {
@ -513,6 +515,7 @@ impl Parser for ConfigParser<'_> {
use_hardware_cursor: use_hardware_cursor.despan(),
show_bar: show_bar.despan(),
focus_history,
middle_click_paste: middle_click_paste.despan(),
})
}
}