<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rayedit.git/test_line.c, branch master</title>
<subtitle>Text editor for large files
</subtitle>
<id>http://git.dilluti0n.com/rayedit.git/atom?h=master</id>
<link rel='self' href='http://git.dilluti0n.com/rayedit.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/rayedit.git/'/>
<updated>2026-07-16T17:24:44Z</updated>
<entry>
<title>Remove obsolated functions and tests about line_get_string</title>
<updated>2026-07-16T17:24:44Z</updated>
<author>
<name>dilluti0n</name>
<email>hskim@dilluti0n.com</email>
</author>
<published>2026-07-16T17:24:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/rayedit.git/commit/?id=76fe957261697ddb2978f2e9fc9a592641388886'/>
<id>urn:sha1:76fe957261697ddb2978f2e9fc9a592641388886</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: double-free of line object in eb_backspace and eb_delete_line</title>
<updated>2025-05-14T09:40:29Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2025-05-14T06:46:33Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/rayedit.git/commit/?id=502aea93b7e2cae6a17d83e6989109d56c9ec79f'/>
<id>urn:sha1:502aea93b7e2cae6a17d83e6989109d56c9ec79f</id>
<content type='text'>
On eb_backspace, when the upper line was non-null, line_cat followed
by line_free, and eb_delete_line only cleared the line_vec. However,
commit 2441e78 introduced an additional line_free in eb_delete_line to
fix a memory leak, which led to a double-free for that line. This
patch resolves that problem.
</content>
</entry>
<entry>
<title>refactor: deprecate line-&gt;cursor; simplify vertical cursor movement</title>
<updated>2025-05-01T15:24:36Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2025-05-01T14:29:19Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/rayedit.git/commit/?id=59bda4a797bcf7cc06f4e3990db8d91448d7604a'/>
<id>urn:sha1:59bda4a797bcf7cc06f4e3990db8d91448d7604a</id>
<content type='text'>
This patch removes the per-line cursor cache (`line-&gt;cursor`),
reducing implementation complexity. Vertical cursor movement (up/down)
now uniformly places the cursor at the beginning of the line, instead
of trying to restore the previous horizontal position. UX
considerations such as column preservation will be revisited after
core stabilization.
</content>
</entry>
<entry>
<title>test: update test_line.c to test lazy-loaded lines</title>
<updated>2025-04-29T07:39:11Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2025-04-29T07:39:11Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/rayedit.git/commit/?id=7187073371ee4a6ff2d7044881622b242573f29e'/>
<id>urn:sha1:7187073371ee4a6ff2d7044881622b242573f29e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove: line-&gt;last to reduce ambiguity.</title>
<updated>2025-04-29T06:17:23Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2025-04-29T06:14:10Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/rayedit.git/commit/?id=fd24eefca89d7e0534ea4ef77aa302bc439da5eb'/>
<id>urn:sha1:fd24eefca89d7e0534ea4ef77aa302bc439da5eb</id>
<content type='text'>
vec_len is O(1) and it would be fast enough to use it.

introduce line_lazy_init for lazy load (allocate each line when
actually edit it!) per line.

[minor]
remove obsolate line_delete_trailing.
</content>
</entry>
<entry>
<title>refactor: line_test.c</title>
<updated>2025-04-28T05:38:48Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2025-04-28T05:38:48Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/rayedit.git/commit/?id=e5349e3db57e1111020f9e9995404d6e20a61664'/>
<id>urn:sha1:e5349e3db57e1111020f9e9995404d6e20a61664</id>
<content type='text'>
</content>
</entry>
<entry>
<title>implement: unittest for line.c</title>
<updated>2025-04-28T05:35:51Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2025-04-28T05:35:51Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/rayedit.git/commit/?id=c39845f54a92d863644466da6fb7a98a6c638660'/>
<id>urn:sha1:c39845f54a92d863644466da6fb7a98a6c638660</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor: move tests to seperate files</title>
<updated>2025-04-28T04:59:48Z</updated>
<author>
<name>dilluti0n</name>
<email>hskimse1@gmail.com</email>
</author>
<published>2025-04-28T04:59:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/rayedit.git/commit/?id=ad41831c81ec19f646b90f954d90c52e92cfc88f'/>
<id>urn:sha1:ad41831c81ec19f646b90f954d90c52e92cfc88f</id>
<content type='text'>
test.c to *_line.c and *_vector.c

also implement unit test vector_suite::resize too.
</content>
</entry>
</feed>
