fix load syntax files from CD
git-svn-id: svn://kolibrios.org@8852 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -762,13 +762,12 @@ proc ted_init_syntax_file, edit:dword
|
||||
|
||||
;init: ted_colors_text_count, ted_key_words_count, ...
|
||||
mov ted_colors_text_count,1
|
||||
mov ted_key_words_count,0
|
||||
mov ted_help_text_f1,0
|
||||
mov ted_help_id,-1 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>䨪<EFBFBD><E4A8AA><EFBFBD><EFBFBD> <><E1ABAE> <20><><EFBFBD> <20><>ࠢ<EFBFBD><E0A0A2>
|
||||
|
||||
mov eax,edi ;<3B><><EFBFBD>࠭塞 <20><><EFBFBD>祭<EFBFBD><E7A5AD> edi
|
||||
mov esi,ted_syntax_file
|
||||
add edi,ted_offs_count_colors
|
||||
add edi,ted_offs_count_colors ;edi = &ted_key_words_count
|
||||
mov ecx,9
|
||||
rep movsd
|
||||
mov edi,eax ;<3B><><EFBFBD>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>祭<EFBFBD><E7A5AD> edi
|
||||
@@ -783,6 +782,8 @@ proc ted_init_syntax_file, edit:dword
|
||||
mov ted_key_words_data,eax
|
||||
|
||||
mov ecx,ted_key_words_count ;init: ted_arr_key_pos (first key positions)
|
||||
or ecx,ecx
|
||||
jz .no_words
|
||||
xor eax,eax
|
||||
@@:
|
||||
ColToIndexOffset eax,edx
|
||||
@@ -795,6 +796,7 @@ proc ted_init_syntax_file, edit:dword
|
||||
.no_ch_key:
|
||||
inc eax
|
||||
loop @b
|
||||
.no_words:
|
||||
|
||||
;init: ted_help_text_f1
|
||||
mov ecx,ted_key_words_count ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢮ <20><><EFBFBD>祢<EFBFBD><E7A5A2> <>
|
||||
|
Reference in New Issue
Block a user