textselect

Interactively select lines and pipe it to a command
Log | Files | Refs | README | LICENSE

commit a3deb1b53a2cc67b0c53bb3391f32e166546782c
parent fbcb89417718b1b7544c8380dcc987dd892a5069
Author: Friedel Schön <[email protected]>
Date:   Tue,  3 Sep 2024 10:56:57 +0200

fixing string printf

Diffstat:
Mtextselect.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/textselect.c b/textselect.c @@ -80,10 +80,10 @@ static void drawscreen(int height, int current_line, int head_line, struct line continue; } if (lines[head_line + i].selected != selected_invert) { - mvwprintw(stdscr, i, 0, selected); + mvwprintw(stdscr, i, 0, "%s", selected); wattron(stdscr, A_BOLD); } else { - mvwprintw(stdscr, i, 0, unselected); + mvwprintw(stdscr, i, 0, "%s", unselected); } if ((head_line + i) == current_line)