mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #1753: panel: bad mounpoint is no longer 'red' highlighted
Restored behavior with stale mountpoint (now handled as stale link). Signed-off-by: Ilia Maslakov <il.smind@gmail.com> Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
f9fc03d5c5
commit
12ed4d0b45
@ -4,11 +4,6 @@
|
||||
[directory]
|
||||
type=DIR
|
||||
|
||||
[stalelink]
|
||||
type=STALE_LINK
|
||||
|
||||
[symlink]
|
||||
type=SYMLINK
|
||||
|
||||
[device]
|
||||
type=DEVICE
|
||||
@ -16,6 +11,12 @@
|
||||
[special]
|
||||
type=SPECIAL
|
||||
|
||||
[stalelink]
|
||||
type=STALE_LINK
|
||||
|
||||
[symlink]
|
||||
type=SYMLINK
|
||||
|
||||
[core]
|
||||
regexp=^core\\.*\\d*$
|
||||
|
||||
|
@ -88,7 +88,9 @@ mc_fhl_is_link_to_dir (file_entry * fe)
|
||||
inline static gboolean
|
||||
mc_fhl_is_stale_link (file_entry * fe)
|
||||
{
|
||||
return mc_fhl_is_link (fe) && (fe->f.stale_link);
|
||||
gboolean is_link = mc_fhl_is_link (fe);
|
||||
|
||||
return (!is_link && !mc_fhl_is_file (fe)) || (is_link && (fe->f.stale_link));
|
||||
}
|
||||
|
||||
inline static gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user