Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ cp config/tokyo-night.toml ~/.config/swindings/config.toml
Add keymap to your `~/.config/sway/config`:

```ini
bindsym $mod+k+m swindings
bindsym $mod+k+m exec swindings
```

## Building from source
Expand Down
2 changes: 1 addition & 1 deletion src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ void display(const KeyMapList *kml, const theme_t *theme) {

float content_height =
(float)(PADDING + (int)kml->count * ROW_HEIGHT + PADDING);
Scroll scroll = scroll_create(content_height, WINDOW_HEIGHT);
Scroll scroll = scroll_create(content_height, BODY_SECTION_HEIGHT);

Font top_font = load_best_font(&theme->top.font);
Font body_font = load_best_font(&theme->body.font);
Expand Down
8 changes: 4 additions & 4 deletions tests/config_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define CHECKED_SNPRINTF(buf, fmt, ...) \
do { \
if (snprintf(buf, sizeof(buf), fmt, __VA_ARGS__) < 0) \
perror("snprintf failed"); \
TEST_FAIL_MESSAGE("snprintf failed"); \
} while (0)

static char *make_tmpdir(void) {
Expand Down Expand Up @@ -58,10 +58,10 @@ static void write_file(const char *path, const char *content) {
FILE *f = fopen(path, "w");
if (!f)
return;
if (fputs(content, f) != 0)
perror("write failed");
if (fputs(content, f) == EOF)
TEST_FAIL_MESSAGE("write failed");
if (fclose(f) != 0)
perror("write failed");
TEST_FAIL_MESSAGE("write failed");
}

void test_sway_filepath_home_sway_dir(void) {
Expand Down
2 changes: 1 addition & 1 deletion tests/utils_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void test_file_exists_for_existing_file(void) {
close(fd);
TEST_ASSERT_TRUE(file_exists(tmpl));
if (remove(tmpl))
perror(tmpl);
TEST_FAIL_MESSAGE(tmpl);
}

void test_file_exists_for_missing_file(void) {
Expand Down
Loading