From 35b5f18ddf50f588442cbd209e71bb4e10a0f9d4 Mon Sep 17 00:00:00 2001
From: Ilia Maslakov <il.smind@gmail.com>
Date: Thu, 19 Feb 2009 20:00:41 +0000
Subject: [PATCH] add exit point to panelized filter (in top list)
---
src/panelize.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/panelize.c b/src/panelize.c
index 5bbf643..74ef6f0 100644
a
|
b
|
static void do_external_panelize (char *command) |
374 | 374 | /* Clear the counters and the directory list */ |
375 | 375 | panel_clean_dir (current_panel); |
376 | 376 | |
| 377 | /* Add exit point */ |
| 378 | list->list[next_free].fnamelen = 1; |
| 379 | list->list[next_free].fname = g_strdup ("."); |
| 380 | list->list[next_free].f.link_to_dir = 0; |
| 381 | list->list[next_free].f.stale_link = 0; |
| 382 | list->list[next_free].f.dir_size_computed = 0; |
| 383 | list->list[next_free].f.marked = 0; |
| 384 | list->list[next_free].st.st_mode = 040755; |
| 385 | next_free++; |
| 386 | |
377 | 387 | while (1) { |
378 | 388 | clearerr(external); |
379 | 389 | if (fgets (line, MC_MAXPATHLEN, external) == NULL) { |