Skip to content

Commit

Permalink
ui: s/UiStyles/UiStyle/g
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed May 21, 2016
1 parent 8df64ea commit 207106f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui-curses.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ static void ui_window_draw(UiWin *w) {
for (const Line *l = view_lines_get(win->view); l; l = l->next) {
bool cursor_line = l->lineno == cursor_lineno;
for (int x = 0; x < width; x++) {
enum UiStyles style_id = l->cells[x].style;
enum UiStyle style_id = l->cells[x].style;
if (style_id == 0)
style_id = UI_STYLE_DEFAULT;
CellStyle *style = &win->styles[style_id];
Expand Down
2 changes: 1 addition & 1 deletion ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ enum UiOption {
UI_OPTION_LARGE_FILE = 1 << 10,
};

enum UiStyles {
enum UiStyle {
UI_STYLE_LEXER_MAX = 64,
UI_STYLE_DEFAULT,
UI_STYLE_CURSOR,
Expand Down
2 changes: 1 addition & 1 deletion view.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ bool view_syntax_set(View *view, const char *name) {
lua_getfield(L, -1, "lexers");

static const struct {
enum UiStyles id;
enum UiStyle id;
const char *name;
} styles[] = {
{ UI_STYLE_DEFAULT, "STYLE_DEFAULT" },
Expand Down
2 changes: 1 addition & 1 deletion view.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ typedef struct {
char data[16]; /* utf8 encoded character displayed in this cell (might be more than
one Unicode codepoint. might also not be the same as in the
underlying text, for example tabs get expanded */
enum UiStyles style;/* style id used to display this cell */
enum UiStyle style; /* style id used to display this cell */
bool selected; /* whether this cell is part of a selected region */
bool cursor; /* whether a cursor is currently located on the cell */
bool cursor_primary;/* whether it is the primary cursor located on the cell */
Expand Down

0 comments on commit 207106f

Please sign in to comment.