Skip to content

Commit

Permalink
Rename: goto_next_buf -> goto_next_buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ath3 committed Nov 2, 2021
1 parent ece9c58 commit 8464493
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion book/src/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Jumps to various locations.
| `r` | Go to references | `goto_reference` |
| `i` | Go to implementation | `goto_implementation` |
| `a` | Go to the last accessed/alternate file | `goto_last_accessed_file` |
| `n` | Go to next buffer | `goto_next_buf` |
| `n` | Go to next buffer | `goto_next_buffer` |

#### Match mode

Expand Down
4 changes: 2 additions & 2 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl Command {
goto_prev_diag, "Goto previous diagnostic",
goto_line_start, "Goto line start",
goto_line_end, "Goto line end",
goto_next_buf, "Goto next buffer",
goto_next_buffer, "Goto next buffer",
// TODO: different description ?
goto_line_end_newline, "Goto line end",
goto_first_nonwhitespace, "Goto first non-blank in line",
Expand Down Expand Up @@ -520,7 +520,7 @@ fn goto_line_start(cx: &mut Context) {
)
}

fn goto_next_buf(cx: &mut Context) {
fn goto_next_buffer(cx: &mut Context) {
let buf_cur = current!(cx.editor).1.id();

if cx.editor.documents.iter().count() > 1 {
Expand Down
2 changes: 1 addition & 1 deletion helix-term/src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ impl Default for Keymaps {
"m" => goto_window_middle,
"b" => goto_window_bottom,
"a" => goto_last_accessed_file,
"n" => goto_next_buf,
"n" => goto_next_buffer,
},
":" => command_mode,

Expand Down

0 comments on commit 8464493

Please sign in to comment.