From e2dc4513dc22195d887b8b674ffa5a7ddb5635b2 Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Sat, 21 Sep 2013 00:21:26 +0000 Subject: [PATCH] Tinypad - fix. Ctrl+H for r.987 git-svn-id: svn://kolibrios.org@3919 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/tinypad/trunk/tp-dialog.asm | 28 +++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/programs/develop/tinypad/trunk/tp-dialog.asm b/programs/develop/tinypad/trunk/tp-dialog.asm index cf9d3e2159..b8eb83110b 100644 --- a/programs/develop/tinypad/trunk/tp-dialog.asm +++ b/programs/develop/tinypad/trunk/tp-dialog.asm @@ -78,17 +78,6 @@ finddlg_handler: 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 je @f mov ebp,tb_replace @@ -101,6 +90,17 @@ finddlg_handler: 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 .key: @@ -662,11 +662,13 @@ botdlg.button: movzx eax,[tb_replace.length] mov esi,tb_replace.text mov edi,[copy_buf] - stosd +; stosd + mov [edi+EDITOR_LINE_DATA.Size],eax + add edi,sizeof.EDITOR_LINE_DATA mov ecx,eax jecxz .lp1 rep movsb - .lp1: add eax,4 + .lp1: add eax,sizeof.EDITOR_LINE_DATA mov [copy_size],eax mov [copy_count],1