It should be possible to open files from the msgwindow even if find_in_files_dir is not set (when providing full path)
Signed-off-by: Jiří Techet techet@gmail.com --- src/msgwindow.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/msgwindow.c b/src/msgwindow.c index 302c82a..3b460ce 100644 --- a/src/msgwindow.c +++ b/src/msgwindow.c @@ -1042,7 +1042,7 @@ static void msgwin_parse_grep_line(const gchar *string, gchar **filename, gint * *filename = NULL; *line = -1;
- if (string == NULL || msgwindow.find_in_files_dir == NULL) + if (string == NULL) return;
/* conflict:3:conflicting types for `foo' */ @@ -1053,7 +1053,9 @@ static void msgwin_parse_grep_line(const gchar *string, gchar **filename, gint * data.file_idx = 0;
parse_file_line(&data, filename, line); - make_absolute(filename, msgwindow.find_in_files_dir); + + if (msgwindow.find_in_files_dir != NULL) + make_absolute(filename, msgwindow.find_in_files_dir); }