Skip to content

Commit

Permalink
vis: rename vis_register_set to vis_register
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Apr 18, 2017
1 parent 497c4e9 commit 915d673
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ static const char *reg(Vis *vis, const char *keys, const Arg *arg) {
if (keys[1])
return vis_keys_next(vis, keys);
enum VisRegister reg = vis_register_from(vis, keys[0]);
vis_register_set(vis, reg);
vis_register(vis, reg);
return keys+1;
}

Expand Down
2 changes: 1 addition & 1 deletion vis.c
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ enum VisRegister vis_register_from(Vis *vis, char reg) {
return VIS_REG_INVALID;
}

void vis_register_set(Vis *vis, enum VisRegister reg) {
void vis_register(Vis *vis, enum VisRegister reg) {
if (VIS_REG_A <= reg && reg <= VIS_REG_Z) {
vis->action.reg = &vis->registers[VIS_REG_a + reg - VIS_REG_A];
vis->action.reg->append = true;
Expand Down
2 changes: 1 addition & 1 deletion vis.h
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ enum VisRegister {

enum VisRegister vis_register_from(Vis*, char reg);
/* set the register to use, if none is given the DEFAULT register is used */
void vis_register_set(Vis*, enum VisRegister);
void vis_register(Vis*, enum VisRegister);
/* get register content */
const char *vis_register_get(Vis*, enum VisRegister, size_t *len);

Expand Down

0 comments on commit 915d673

Please sign in to comment.