<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/testsuite/ed.tests, branch mount_point</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=mount_point</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=mount_point'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2024-07-18T14:02:54+00:00</updated>
<entry>
<title>ed: fix line insertion before current line</title>
<updated>2024-07-18T14:02:54+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-07-18T14:01:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b1813ca864ed04f28b8ae0121c913fbe16aab8ee'/>
<id>urn:sha1:b1813ca864ed04f28b8ae0121c913fbe16aab8ee</id>
<content type='text'>
When text is inserted by insertLine() the lines following the
insertion are moved down and the insertion point is made the new
current line.  To avoid too much scanning of the linked list of
lines setCurNum() may use the position of the old current line to
determine the location of the new current line.

If the insertion point is before the old current line in the file
the latter will have been moved down, so its line pointer needs to
be adjusted.

(GitHub issue #431)
</content>
</entry>
</feed>
