summaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2020-07-11 08:57:14 -0700
committerlouie <lshprung@yahoo.com>2020-07-11 08:57:14 -0700
commit8ec8e9d5dd37eac5266f8cd94ce946f23f436ef9 (patch)
tree27bbd50e9e2d5deb663488dfdd6018da9addbb74 /draw.c
parent1008c6e563a29000653016fd25ce24f0c8a78df7 (diff)
Fixed bug when compmode is on and an entry is forced
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c4
1 files changed, 3 insertions, 1 deletions
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, "\"");