Commits
- Commit:
f853ec6f0c0569cf5bae15ce3e9d8bfc533b358b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
handle tab characters
tab characters have their width depending on the column they're in,
since they extend to the next multiple of 8. (citation needed?)
So, keep track of the column when considering the length (in columns)
of the text, so that we can render them properly.
In the future we might want to turn them into spaces (either at read
or render time) just to stay on the safe side in case not all
terminals/ncurses implementations use 8 columns.
- Commit:
613281e454070fdd2fce96a5ef70af04ffb02f68
- From:
- Omar Polo <op@omarpolo.com>
- Date:
mark utf8_chwidth as static
- Commit:
3cfc831e45f4d4749e2748f94443f54c8bb48ffc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
retire utf8_encode too, it's no longer used
- Commit:
de151cb67023bb839d4faae4f2b49090a75ecf79
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove now unused fuctions from utf8.c
- Commit:
6d24bfb3ca185665e8a7fa4e5f88434690f4272d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use a byte offset to track the point in the line
Instead of using a code-point offset, use a raw byte offset and
navigate backward and forward by means of graphemes. This gives a
correct "visual" backward/forward navigation through characters.
- Commit:
2815e3a0bd30fa577f03de5af1a60086ee286e4a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typos; courtesy of codespell
- Commit:
f7db6d139bba0fb56f0560533b77af219958ecc0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
some headers cleanup
try to not include headers from headers, and remove some redundant
include.
This helps in modularizing the codebase and also helps during
incremental compilations.
- Commit:
1ac119fb5a25757d6e8eaa3b53320b7c3be61cee
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move all the sources back in the root directory
subdir is just messier for no good reason