Subversion Repositories Kolibri OS

Rev

Rev 7558 | Rev 7904 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7558 Rev 7903
Line 546... Line 546...
546
        pushad                      ; from edit_box_key.delete
546
        pushad                      ; from edit_box_key.delete
547
        jmp    edit_box_key.delete
547
        jmp    edit_box_key.delete
548
.selected_done:
548
.selected_done:
549
        mov     ecx,[eax]
549
        mov     ecx,[eax]
550
        sub     ecx,3*4
550
        sub     ecx,3*4
-
 
551
        push    ecx
551
; in ecx size of string to insert
552
; in ecx size of string to insert
552
        add     ecx,ed_size
553
        add     ecx,ed_size
553
        mov     edx,ed_max
554
        mov     edx,ed_max
554
        cmp     ecx,edx
555
        cmp     ecx,edx
555
        jb      @f
556
        jb      @f
Line 580... Line 581...
580
;.continue:
581
;.continue:
581
;        stosb
582
;        stosb
582
;        dec     ecx
583
;        dec     ecx
583
;        jnz     @b
584
;        jnz     @b
584
        pop     edi eax
585
        pop    edi eax
-
 
586
;move cursor to the end of the inserted string		
-
 
587
        pop    ecx
-
 
588
        add    ecx,ed_pos
-
 
589
        cmp    ecx,ed_max
-
 
590
        jbe    @f
-
 
591
        mov    ecx,ed_max
-
 
592
@@:
-
 
593
		mov    ed_pos, ecx
585
.no_valid_text:
594
.no_valid_text:
586
; remove unnecessary memory area
595
; remove unnecessary memory area
587
        mov     ecx,eax
596
        mov     ecx,eax
588
        mcall   SF_SYS_MISC,SSF_MEM_FREE
597
        mcall   SF_SYS_MISC,SSF_MEM_FREE
589
.exit:
598
.exit: