From d4339e82a2e9acc9f14bb51abde47712187fcb9e Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Sun, 23 Dec 2018 17:28:01 +0900 Subject: [PATCH] file-browser: actually show a cursor of some form in the navbar --- apps/file-browser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/file-browser.c b/apps/file-browser.c index db145e32..52a4abe6 100644 --- a/apps/file-browser.c +++ b/apps/file-browser.c @@ -595,8 +595,11 @@ static void _draw_nav_bar(struct decor_bounds bounds) { int max_width = main_window->width - bounds.width - x - 12; int len = strlen(nav_bar); - char * name = malloc(len + 4); + char * name = malloc(len + 5); memcpy(name, nav_bar, len + 1); + if (nav_bar_focused) { + strcat(name,"|"); + } int name_width; while ((name_width = draw_sdf_string_width(name, 16, SDF_FONT_THIN)) > max_width) { len--;