From 2dbeca9bb82f9aba914c4535277ce54cfa18ab50 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Mon, 21 Nov 2016 19:27:20 -0500 Subject: [PATCH] style inconsistencies --- xedit.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/xedit.c b/xedit.c index 7b66d55..0db2517 100644 --- a/xedit.c +++ b/xedit.c @@ -259,7 +259,7 @@ static void draw_status(int fg, size_t ncols) { (status++)->rune = '.'; path += (len - ncols) + 6; } - while(*path) + while (*path) (status++)->rune = *path++; draw_runes(2, 2, fg, 0, glyphs, status - glyphs); } @@ -411,13 +411,12 @@ static void paste(void) { /* Mouse Handling *****************************************************************************/ static void mouse_left(enum RegionId id, size_t count, size_t row, size_t col) { - if (count == 1) { + if (count == 1) view_setcursor(getview(id), row, col); - } else if (count == 2) { + else if (count == 2) view_select(getview(id), row, col); - } else if (count == 3) { + else if (count == 3) view_selword(getview(id), row, col); - } } static void mouse_middle(enum RegionId id, size_t count, size_t row, size_t col) { -- 2.49.0