forked from KolibriOS/kolibrios
't_edit' fix open file from cmd line
git-svn-id: svn://kolibrios.org@2847 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
db5e4c8516
commit
80c1f976e0
@ -157,7 +157,7 @@ endp
|
|||||||
; edi = pointer to tedit struct
|
; edi = pointer to tedit struct
|
||||||
align 4
|
align 4
|
||||||
ted_messages_after_open_file:
|
ted_messages_after_open_file:
|
||||||
push ecx
|
push ecx edi
|
||||||
cmp eax,0
|
cmp eax,0
|
||||||
je @f
|
je @f
|
||||||
cmp eax,6
|
cmp eax,6
|
||||||
@ -176,13 +176,14 @@ ted_messages_after_open_file:
|
|||||||
cmp ebx,-1
|
cmp ebx,-1
|
||||||
je .ret_f
|
je .ret_f
|
||||||
;if open file
|
;if open file
|
||||||
|
mov edi,tedit0
|
||||||
mov ecx,ted_max_chars
|
mov ecx,ted_max_chars
|
||||||
sub ecx,2 ;ecx = ¬ ªá¨¬ «ì®¥ ç¨á«® ¡ ©â, ¤«ï ª®â®àëå ¡ë« ¢ë¤¥«¥ ¯ ¬ïâì
|
sub ecx,2 ;ecx = ¬ ªá¨¬ «ì®¥ ç¨á«® ¡ ©â, ¤«ï ª®â®àëå ¡ë« ¢ë¤¥«¥ ¯ ¬ïâì
|
||||||
cmp ebx,ecx
|
cmp ebx,ecx
|
||||||
jl .ret_f
|
jl .ret_f
|
||||||
stdcall [mb_create],msgbox_1,thread
|
stdcall [mb_create],msgbox_1,thread
|
||||||
.ret_f:
|
.ret_f:
|
||||||
pop ecx
|
pop edi ecx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
|
@ -508,7 +508,7 @@ dir_mem rb 32+304*count_of_dir_list_files
|
|||||||
|
|
||||||
if lang eq ru
|
if lang eq ru
|
||||||
|
|
||||||
hed db '’¥ªáâ®¢ë© à¥¤ ªâ®à 22.06.12',0 ;¯®¤¯¨áì ®ª
|
hed db '’¥ªáâ®¢ë© à¥¤ ªâ®à 05.07.12',0 ;¯®¤¯¨áì ®ª
|
||||||
|
|
||||||
menu_text_area:
|
menu_text_area:
|
||||||
db '” ©«',0
|
db '” ©«',0
|
||||||
@ -626,7 +626,7 @@ txtFormatApply db '
|
|||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
hed db 'Text editor 22.06.12',0
|
hed db 'Text editor 05.07.12',0
|
||||||
|
|
||||||
menu_text_area:
|
menu_text_area:
|
||||||
db 'File',0
|
db 'File',0
|
||||||
|
Loading…
Reference in New Issue
Block a user