From fe6931589bb89ff18cf36fd4fca031aa594f78a8 Mon Sep 17 00:00:00 2001 From: Marat Zakiyanov Date: Sat, 26 Mar 2022 16:26:43 +0000 Subject: [PATCH] KFM - fix show icon and fix key/mouse processing for dir names starting with ".." git-svn-id: svn://kolibrios.org@9749 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/fs/kfm/trunk/draw.inc | 3 +++ programs/fs/kfm/trunk/key.inc | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/programs/fs/kfm/trunk/draw.inc b/programs/fs/kfm/trunk/draw.inc index 34f47ecec8..0ad964d215 100644 --- a/programs/fs/kfm/trunk/draw.inc +++ b/programs/fs/kfm/trunk/draw.inc @@ -232,6 +232,9 @@ draw_icon: cmp [edx],word '..' jne .draw + cmp [edx+2],byte 0 + jne .draw + add ebx,270 ;*17 ;-------------------------------------- .draw: diff --git a/programs/fs/kfm/trunk/key.inc b/programs/fs/kfm/trunk/key.inc index 13e1f15bdb..c62d0dbbef 100644 --- a/programs/fs/kfm/trunk/key.inc +++ b/programs/fs/kfm/trunk/key.inc @@ -426,7 +426,10 @@ key_28: cmp [esi+40],word 2Eh je still cmp [esi+40],word '..' + jne @f + cmp [esi+40+2],byte 0 je .up_patch +@@: call calculate_key_28_1 mov [left_start_draw_cursor_line],0 mov [left_start_draw_line],0 @@ -445,7 +448,10 @@ key_28: cmp [esi+40],word 2Eh je still cmp [esi+40],word '..' + jne @f + cmp [esi+40+2],byte 0 je .up_patch_1 +@@: call calculate_key_28_1 mov [right_start_draw_cursor_line],0 mov [right_start_draw_line],0