From 8ec8e9d5dd37eac5266f8cd94ce946f23f436ef9 Mon Sep 17 00:00:00 2001 From: louie Date: Sat, 11 Jul 2020 08:57:14 -0700 Subject: Fixed bug when compmode is on and an entry is forced --- draw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'draw.c') diff --git a/draw.c b/draw.c index 2e24a03..96b4525 100644 --- a/draw.c +++ b/draw.c @@ -359,6 +359,7 @@ char *get_launch(){ char *program = get_gprog(g[g_hover]); char *flags = get_gflags(g[g_hover]); char *path = get_epath(e[e_hover]); + bool force = get_eforce(e[e_hover]); int mode = get_compmode(); char *full_command = malloc(sizeof(char) * BUF_LEN); bool quote_flag_p = (program[0] == '"' ? false : true); @@ -376,7 +377,8 @@ char *get_launch(){ } else{ - if(mode != 0) path = compat_convert(path, mode); + //if the entry is not forced and compatability mode is on, run it through the converter function + if(mode != 0 && !force) path = compat_convert(path, mode); if(quote_flag_p) strcat(full_command, "\""); strcat(full_command, program); if(quote_flag_p) strcat(full_command, "\""); -- cgit