mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-15 19:33:59 +03:00
'box_lib.obj' fix 't_edit' when end line only 0x0a
git-svn-id: svn://kolibrios.org@4252 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
de8b1b257a
commit
61d4b89695
@ -1,6 +1,6 @@
|
||||
; ¬ ªà®á ¤«ï á¨á⥬®© ¡¨¡«¨®â¥ª¨ box_lib.obj
|
||||
; í«¥¬¥â TextEditor ¤«ï Kolibri OS
|
||||
; ä ©« ¯®á«¥¤¨© à § ¨§¬¥ï«áï 13.11.2013 IgorA
|
||||
; ä ©« ¯®á«¥¤¨© à § ¨§¬¥ï«áï 18.11.2013 IgorA
|
||||
; ª®¤ ¯à¨¬¥¥ GPL2 «¨æ¥§¨ï
|
||||
|
||||
;input:
|
||||
@ -774,6 +774,27 @@ proc ted_on_open_file
|
||||
push esi
|
||||
|
||||
stdcall ted_clear,edi,0 ;ç¨á⨬ ¥ ¢áî ¯ ¬ïâì, ¯®â®¬ã çâ® ¨¦¥ ¡ã¤¥¬ ¥¥ § ¯®«ïâì ®¢ë¬¨ ¤ 묨
|
||||
|
||||
;ª®£¤ ᨬ¢®« § ¢¥à襨ï áâப¨ ⮫쪮 10 (¡¥§ 13)
|
||||
mov edx,ted_tex
|
||||
mov ecx,ebx
|
||||
@@:
|
||||
cmp byte[edx],13
|
||||
je .no_10 ;¥á«¨ ©¤¥ ᨬ¢®« 13, â® 10-¥ ¨£®à¨à㥬
|
||||
inc edx
|
||||
loop @b
|
||||
mov edx,ted_tex
|
||||
mov ecx,ebx
|
||||
.s_10:
|
||||
cmp byte[edx],10
|
||||
jne @f
|
||||
mov byte[edx],13 ;¬¥ï¥¬ 10-© ᨬ¢®« ª®æ áâப¨
|
||||
@@:
|
||||
inc edx
|
||||
loop .s_10
|
||||
.no_10:
|
||||
|
||||
;¯¥à¥¢®¤¨¬ ®âªàëâë© ä ©« ¢ãâàì í«¥¬¥â t_edit
|
||||
mov eax,ebx
|
||||
mov ecx,ebx
|
||||
add eax,2
|
||||
|
Loading…
Reference in New Issue
Block a user