sob

Simple output bar
git clone https://git.sinitax.com/codemadness/sob
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 839fb50286a96f1deef6c4a53e59d83d23d2a78e
parent b2be349090eddfd8f22c3c7efed4428ffbb188d9
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 11 Oct 2014 00:46:30 +0000

code style: wrap to max 79 chars

Diffstat:
Msob.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/sob.c b/sob.c @@ -277,7 +277,8 @@ line_cursor_move(size_t newpos) static void line_cursor_wordprev(void) { - line_getwordposprev(line.bytepos, line.utfpos, &line.bytepos, &line.utfpos); + line_getwordposprev(line.bytepos, line.utfpos, &line.bytepos, + &line.utfpos); line.colpos = colw(line.line, line.bytepos); line_cursor_move(line.colpos); } @@ -285,7 +286,8 @@ line_cursor_wordprev(void) static void line_cursor_wordnext(void) { - line_getwordposnext(line.bytepos, line.utfpos, &line.bytepos, &line.utfpos); + line_getwordposnext(line.bytepos, line.utfpos, &line.bytepos, + &line.utfpos); line.colpos = colw(line.line, line.bytepos); line_cursor_move(line.colpos); } @@ -756,7 +758,8 @@ handleinput(const unsigned char *input, size_t len) ismatch = 0; for(i = 0; i < LEN(keybinds); i++) { keylen = strlen((char*)keybinds[i].key); - if(strncmp((const char*)&input[p], (const char *)keybinds[i].key, keylen) == 0) { + if(strncmp((const char*)&input[p], + (const char *)keybinds[i].key, keylen) == 0) { keybinds[i].func(); p += keylen; ismatch = 1;