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
This commit is contained in:
Marat Zakiyanov 2022-03-26 16:26:43 +00:00
parent ed61181c2a
commit fe6931589b
2 changed files with 9 additions and 0 deletions

View File

@ -232,6 +232,9 @@ draw_icon:
cmp [edx],word '..'
jne .draw
cmp [edx+2],byte 0
jne .draw
add ebx,270 ;*17
;--------------------------------------
.draw:

View File

@ -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