/programs/develop/libraries/box_lib/trunk/editbox.asm |
---|
548,6 → 548,7 |
.selected_done: |
mov ecx,[eax] |
sub ecx,3*4 |
push ecx |
; in ecx size of string to insert |
add ecx,ed_size |
mov edx,ed_max |
582,6 → 583,14 |
; dec ecx |
; jnz @b |
pop edi eax |
;move cursor to the end of the inserted string |
pop ecx |
add ecx,ed_pos |
cmp ecx,ed_max |
jbe @f |
mov ecx,ed_max |
@@: |
mov ed_pos, ecx |
.no_valid_text: |
; remove unnecessary memory area |
mov ecx,eax |