From 5d5167084c42876f766509b32c859c7a05359540 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Sat, 26 Sep 2015 15:11:27 +0200 Subject: [PATCH] fixed a couple of small issues, small improvement in readme --- README.md | 2 +- src/string_constants.c | 2 +- src/ui_functions.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b68fd42..cf87fe6 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Ncurses File Manager for linux * Powermanagement inhibition while processing a job(eg: while pasting a file) to avoid data loss. It relies upon systemd/logind (sd-bud API), so it requires a systemd booted system. It is switched off by default. You can enable this feature from the config file or with "--inhibit=1" cmdline switch. * It can mount your external usb drives/sticks through sd-bus and udisks2. Press 'm' to get a list of mountable drives (if any), then type your chosen drive to mount it. -* It can install your distro package files: pressing enter on a package file will ask user if he wants to install the package. It relies upon packagekit. +* It can install your distro package files: pressing enter on a package file will ask user if he wants to install the package. It relies upon packagekit, so it should be distro agnostic. **IT DOES NOT SUPPORT TERMINAL RESIZE**. It is meant to be used maximized, or from a tty. diff --git a/src/string_constants.c b/src/string_constants.c index 494ebde..b432f21 100644 --- a/src/string_constants.c +++ b/src/string_constants.c @@ -61,7 +61,7 @@ const char *helper_string[] = { "Enter to surf between folders or to open files "You can't close first tab. Use q to quit."}; #if defined(LIBUDEV_PRESENT) && (SYSTEMD_PRESENT) -const char *device_mode_str = "Device tab. Choose your desired device to (un)mount it. q to quit."; +const char *device_mode_str = "Choose your desired device to (un)mount it. q to quit."; #endif #ifdef SYSTEMD_PRESENT const char *bus_error = "Failed to open system bus"; diff --git a/src/ui_functions.c b/src/ui_functions.c index 034b54c..df9b6ab 100644 --- a/src/ui_functions.c +++ b/src/ui_functions.c @@ -176,12 +176,12 @@ static void print_border_and_title(int win) { wborder(fm[win], '|', '|', '-', '-', '+', '+', '+', '+'); if (sv.searching == 3 + win) { - mvwprintw(fm[win], 0, 0, "Found file searching %.*s: ", width[active] - 1 - strlen("Found file searching : ") - strlen(search_tab_title), sv.searched_string); + mvwprintw(fm[win], 0, 0, "Found file searching %.*s: ", width[win] - 1 - strlen("Found file searching : ") - strlen(search_tab_title), sv.searched_string); mvwprintw(fm[win], 0, width[win] - (strlen(search_tab_title) + 1), search_tab_title); } #if defined(LIBUDEV_PRESENT) && (SYSTEMD_PRESENT) else if (device_mode == 1 + win) { - mvwprintw(fm[win], 0, 0, device_mode_str); + mvwprintw(fm[win], 0, 0, "%.*s", width[win] - 1, device_mode_str); } #endif else {