BB vi bug

walter harms wharms at bfs.de
Tue Jun 24 07:59:39 UTC 2008



Denys Vlasenko wrote:
> On Monday 23 June 2008 19:18, walter harms wrote:
>> hi list,
>> while testing to find a more easy way to produce the bug i notice that odd behavier here:
>> 1. please note the ^@  i can produce that with a i <cr> in the first line
>> 2. there are clearly 3 lines but the systems thinks i am in line 4
>> everyone if free to join the hunt (note:the code is from the current svn vi.c)
>>
>>



<------------Screenschot----------------->
>jdjdjdjdjdjdj
> dddddddddddddddddddddddddddddddd
> ddddddddddddddddddddddddddd
> ^@
> ~
> ~
> ~
> ~
> - No file [Modified] 3/2 150%
<----------------------------------------->

> 
> Walter, you are obviously keeping much of state in your head.
> For anyone who is not debugging vi at the moment the above
> description doesn't make much sense - too much of state is
> not spelled out.
> --

mea culpa,
to replicate the strangeness i noted do the following.
start latest vi from svn.
1. goto insert mode
2. press return a ^@ will show up
 it is not present in the snapshot from 2008-04-25


an other funny result its that the linecount is broken.
please notice the status line in "the screenshot"


re,
 wh



More information about the busybox mailing list