diff --git a/programs/other/t_edit/t_draw.inc b/programs/other/t_edit/t_draw.inc index 4ccd8280ae..13f31aa0a8 100644 --- a/programs/other/t_edit/t_draw.inc +++ b/programs/other/t_edit/t_draw.inc @@ -245,7 +245,7 @@ proc draw_panel_syntax mov edx,txtFormatCapt int 0x40 - mov ebx,10*65536+25 + mov ebx,10*65536+31 add ebx,dword[tree1.box_height] add ebx,ted_wnd_t mov edx,txtFormatApply diff --git a/programs/other/t_edit/wnd_k_words.inc b/programs/other/t_edit/wnd_k_words.inc index 592e8b1f57..70c1912eaa 100644 --- a/programs/other/t_edit/wnd_k_words.inc +++ b/programs/other/t_edit/wnd_k_words.inc @@ -50,7 +50,7 @@ pushad shl ebx,16 mov bx,prop_wnd_width mov cx,word[procinfo.box.top] - add cx,5 ;word[buf_0.t] + add cx,42 ;word[buf_0.t] shl ecx,16 mov cx,250 mov edx,0xffffd0 @@ -167,13 +167,18 @@ prop_button: ;копировать в буфер stdcall [tl_node_get_data],tree3 pop esi - cmp esi,0 - je .no_select_0 + or esi,esi + jz .no_select_0 mov edi,[tedit0.buffer] + mov dword[edi],MAX_COLOR_WORD_LEN + mov dword[edi+4],0 ;text data + mov dword[edi+8],1 ;code 866 + add edi,12 ;system buffer header size mov byte[edi+MAX_COLOR_WORD_LEN],0 mov ecx,MAX_COLOR_WORD_LEN cld rep movsb + mcall 54,2,12+MAX_COLOR_WORD_LEN,[tedit0.buffer] .no_select_0: @@: