summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-10-30 21:40:13 +0100
committerDave Davenport <qball@gmpclient.org>2017-10-30 21:40:13 +0100
commit1dccdb302e321db3973b010fb4e11ae759bc4702 (patch)
tree59fd877869c22eeeec454d92faf2ad8a7a11d8c0 /source
parentc405c748a28c8b0d08ed9fa83ede18bd38d64880 (diff)
Remove color from prompt, can be added in theme now.
fixed: #637
Diffstat (limited to 'source')
-rw-r--r--source/rofi.c2
-rw-r--r--source/view.c9
2 files changed, 2 insertions, 9 deletions
diff --git a/source/rofi.c b/source/rofi.c
index 74cc9d36..8199e302 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -182,7 +182,7 @@ static void run_switcher ( ModeMode mode )
return;
}
curr_switcher = mode;
- RofiViewState * state = rofi_view_create ( modi[mode], config.filter, MENU_PROMPT_COLON, process_result );
+ RofiViewState * state = rofi_view_create ( modi[mode], config.filter, 0, process_result );
if ( state ) {
rofi_view_set_active ( state );
}
diff --git a/source/view.c b/source/view.c
index b532c7b2..be5768bc 100644
--- a/source/view.c
+++ b/source/view.c
@@ -244,14 +244,7 @@ static void rofi_view_update_prompt ( RofiViewState *state )
{
if ( state->prompt ) {
const char *str = mode_get_display_name ( state->sw );
- if ( ( state->menu_flags & MENU_PROMPT_COLON ) != 0 ) {
- char *pr = g_strconcat ( str, ":", NULL );
- textbox_text ( state->prompt, pr );
- g_free ( pr );
- }
- else {
- textbox_text ( state->prompt, str );
- }
+ textbox_text ( state->prompt, str );
}
}