mirror of
https://github.com/javalsai/lidm.git
synced 2026-02-27 12:00:44 +01:00
misc batch of fixes before v1.2.3 (#65)
* fix some formatter and linter issues * make clang-tidy/clang-format fail with error status and output in github error format * docs, add kmscon thing * and some CI stuff
This commit is contained in:
@@ -106,12 +106,12 @@ size_t utf8len_until(const char* str, const char* until) {
|
||||
size_t utf8trunc(char* str, size_t n) {
|
||||
size_t bytes = 0;
|
||||
while (true) {
|
||||
if(str[bytes] == '\0') break;
|
||||
if (str[bytes] == '\0') break;
|
||||
if (utf8_iscont(str[bytes])) {
|
||||
bytes++;
|
||||
continue;
|
||||
}
|
||||
if(n == 0) {
|
||||
if (n == 0) {
|
||||
str[bytes] = '\0';
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user