<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/extract.c, branch 1.7.1</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.7.1</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.7.1'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-01-16T20:16:00Z</updated>
<entry>
<title>debug: rename assert() to xassert(), to avoid clashing with &lt;assert.h&gt;</title>
<updated>2021-01-16T20:16:00Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-01-16T20:16:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e56136ce1192d04a52b01ccb41284f0b7896430e'/>
<id>urn:sha1:e56136ce1192d04a52b01ccb41284f0b7896430e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: combine enum selection_kind with selection_semantic</title>
<updated>2021-01-06T09:53:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-06T09:53:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3a9172342fd69c09d3fddfb26eba12dcbe1e5149'/>
<id>urn:sha1:3a9172342fd69c09d3fddfb26eba12dcbe1e5149</id>
<content type='text'>
</content>
</entry>
<entry>
<title>extract: finish: increase ‘idx’ when pushing new data, for consistency</title>
<updated>2021-01-04T18:48:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-03T15:21:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fd5d68c819d41cb5966408713ed3fb5d27e3ff57'/>
<id>urn:sha1:fd5d68c819d41cb5966408713ed3fb5d27e3ff57</id>
<content type='text'>
We don’t write anything more to the buffer after this, but this makes
this code consistent with all other code that pushes new data to the
buffer.

This makes it easier to search, and validate, the
ensure_size()+push-data pattern.
</content>
</entry>
<entry>
<title>extract: finish: fix bad assertion - ‘idx’ may be equal to ‘size’</title>
<updated>2021-01-04T18:48:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-03T15:18:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=07078da0f07dfd410398ec9c816b2d7d888f2d38'/>
<id>urn:sha1:07078da0f07dfd410398ec9c816b2d7d888f2d38</id>
<content type='text'>
‘idx’ is where _new_ data should be pushed into the buffer. Thus it is
perfectly valid for it to be equal to ‘size’ - it just means we need
to allocate more space before pushing data to it.
</content>
</entry>
<entry>
<title>extract: only emit newlines if followed by non-empty cells</title>
<updated>2020-08-20T17:22:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-20T17:21:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f85cf47b6517fc33e37fe028cbe07ccf69e20f5f'/>
<id>urn:sha1:f85cf47b6517fc33e37fe028cbe07ccf69e20f5f</id>
<content type='text'>
Closes #97
</content>
</entry>
<entry>
<title>Convert most dynamic allocations to use functions from xmalloc.h</title>
<updated>2020-08-08T19:37:57Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2020-08-08T19:34:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7a77958ba20c2b344be5e66e69e2f212a4bbf6b3'/>
<id>urn:sha1:7a77958ba20c2b344be5e66e69e2f212a4bbf6b3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: add 'hide-when-typing'</title>
<updated>2020-07-31T15:09:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-31T15:09:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d4ee9be4d767ff4927c9e322bdbf958841dc091d'/>
<id>urn:sha1:d4ee9be4d767ff4927c9e322bdbf958841dc091d</id>
<content type='text'>
When enabled, the mouse cursor is hidden when the user types in the
terminal. It is un-hidden when the user moves the mouse, or when the
window loses keyboard focus.
</content>
</entry>
<entry>
<title>extract: finish: allocate buffer before writing the terminator</title>
<updated>2020-07-16T15:46:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-16T15:46:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e5401c845c058d53aff9586cf12e0074e74059aa'/>
<id>urn:sha1:e5401c845c058d53aff9586cf12e0074e74059aa</id>
<content type='text'>
When all cells were empty, we'll have written 0 bytes to the buffer
and hence it will still be un-allocated (i.e. NULL).
</content>
</entry>
<entry>
<title>extract: extract_one() sets a fail flag that extract_finish() reads</title>
<updated>2020-07-15T09:32:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-15T09:32:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e6acafa11871af8992d5935f3f60d18c79e791b1'/>
<id>urn:sha1:e6acafa11871af8992d5935f3f60d18c79e791b1</id>
<content type='text'>
This allows us to safely call extract_finish() when extract_one()
failed, and we'll get the expected result; false, indicating
extract_finish() failed.
</content>
</entry>
<entry>
<title>extract: extract_one: make arguments const</title>
<updated>2020-07-15T09:31:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-15T09:31:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2539e3cbb2fed78f446338ecd589eeb505ae9f45'/>
<id>urn:sha1:2539e3cbb2fed78f446338ecd589eeb505ae9f45</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: refactor: break out text extraction to a separate file</title>
<updated>2020-07-15T09:19:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-15T09:19:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=aafa120f92b2f41d1a753493676ee7ee0cb7a1ff'/>
<id>urn:sha1:aafa120f92b2f41d1a753493676ee7ee0cb7a1ff</id>
<content type='text'>
</content>
</entry>
</feed>
