Tinypad - fix r.4487 for replace mode.

git-svn-id: svn://kolibrios.org@4490 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2014-01-19 22:33:30 +00:00
parent 30559d9cdb
commit 498bfb6f7a
3 changed files with 9 additions and 1 deletions

View File

@ -97,6 +97,7 @@ bot_mode db ?
bot_mode2 db ?
popup_valid_text db ?
replace_mode db ?
align 4

View File

@ -675,7 +675,9 @@ botdlg.button:
push [cur_editor.SelStart.X]
mov ebp,cur_editor
call init_sel_vars
mov [replace_mode],1
call key.ctrl_v
mov [replace_mode],0
pop [cur_editor.SelStart.X]
stdcall mem.Free,[copy_buf]

View File

@ -584,8 +584,10 @@ endp
;-----------------------------------------------------------------------------
proc key.ctrl_v
cmp [replace_mode],0
jne @f
call get_from_clipboard
@@:
cmp [copy_size],0
je .exit
@ -691,6 +693,9 @@ proc key.ctrl_v
mov [cur_editor.Modified],1
.exit:
cmp [replace_mode],0
jne .exit_1
cmp [copy_size],0
je .exit_1
; remove unnecessary memory area