summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-07-29 12:44:02 +0100
committerPhil Jones <philj56@gmail.com>2022-07-29 14:32:35 +0100
commit82d4c237d1f501cd7b0b8afc53ed87fd3ccf0e18 (patch)
tree87f81278d8bbecaab1f8030f1fe5846e9a5ce28e /src/main.c
parent96fb966e7b89846fa8305d5dc521a113fcfab82b (diff)
Add --selection-padding option.
This adds some extra padding in the selection background, rather than tightly wrapping the selection text.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 0587304..9a3ace1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -687,6 +687,8 @@ static void usage()
" --prompt-text <string> Prompt text.\n"
" --num-results <n> Maximum number of results to display.\n"
" --selection-color <color> Color of selected result.\n"
+" --selection-padding <px> Extra horizontal padding for selected\n"
+" result background.\n"
" --selection-background <color> Color of selected result background.\n"
" --result-spacing <px> Spacing between results.\n"
" --min-input-width <px> Minimum input width in horizontal mode.\n"
@@ -727,6 +729,7 @@ const struct option long_options[] = {
{"font-size", required_argument, NULL, 0},
{"num-results", required_argument, NULL, 0},
{"selection-color", required_argument, NULL, 0},
+ {"selection-padding", required_argument, NULL, 0},
{"selection-background", required_argument, NULL, 0},
{"outline-width", required_argument, NULL, 0},
{"outline-color", required_argument, NULL, 0},