Tinypad - fix. Ctrl+H for r.987

git-svn-id: svn://kolibrios.org@3919 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2013-09-21 00:21:26 +00:00
parent bd59d25eb4
commit e2dc4513dc

View File

@ -78,17 +78,6 @@ finddlg_handler:
mov ecx,[esp] mov ecx,[esp]
mov ebp,tb_find
mov eax,[p_info.client_box.width]
sub eax,6*(s_2find.size+2)+1
add eax,6*(s_2find.size+2)*65536
mov dword[tbox.width],eax
add ecx,-18*65536+1
mov dword[tbox.height],ecx
call textbox.draw
pop ecx
cmp [bot_mode2],0 cmp [bot_mode2],0
je @f je @f
mov ebp,tb_replace mov ebp,tb_replace
@ -101,6 +90,17 @@ finddlg_handler:
call textbox.draw call textbox.draw
@@: @@:
pop ecx
mov ebp,tb_find
mov eax,[p_info.client_box.width]
sub eax,6*(s_2find.size+2)+1
add eax,6*(s_2find.size+2)*65536
mov dword[tbox.width],eax
add ecx,-18*65536+1
mov dword[tbox.height],ecx
call textbox.draw
ret ret
.key: .key:
@ -662,11 +662,13 @@ botdlg.button:
movzx eax,[tb_replace.length] movzx eax,[tb_replace.length]
mov esi,tb_replace.text mov esi,tb_replace.text
mov edi,[copy_buf] mov edi,[copy_buf]
stosd ; stosd
mov [edi+EDITOR_LINE_DATA.Size],eax
add edi,sizeof.EDITOR_LINE_DATA
mov ecx,eax mov ecx,eax
jecxz .lp1 jecxz .lp1
rep movsb rep movsb
.lp1: add eax,4 .lp1: add eax,sizeof.EDITOR_LINE_DATA
mov [copy_size],eax mov [copy_size],eax
mov [copy_count],1 mov [copy_count],1