diff --git a/src/user.c b/src/user.c
index ac8a28a..67f6cb4 100644
a
|
b
|
expand_format (struct WEdit *edit_widget, char c, gboolean do_quote) |
193 | 193 | if (c == '%') |
194 | 194 | return g_strdup ("%"); |
195 | 195 | |
196 | | if (edit_one_file == NULL) { |
| 196 | if ((edit_one_file == NULL) && (view_one_file == NULL)) |
| 197 | { |
197 | 198 | if (g_ascii_islower ((gchar) c)) |
198 | 199 | panel = current_panel; |
199 | 200 | else { |
… |
… |
expand_format (struct WEdit *edit_widget, char c, gboolean do_quote) |
204 | 205 | fname = panel->dir.list[panel->selected].fname; |
205 | 206 | } |
206 | 207 | #ifdef USE_INTERNAL_EDIT |
207 | | else |
| 208 | else if (edit_one_file != NULL) |
208 | 209 | fname = str_unconst (edit_get_file_name (edit_widget)); |
209 | 210 | #endif |
210 | 211 | |