Skip to content

Commit

Permalink
Rename function according to convention
Browse files Browse the repository at this point in the history
  • Loading branch information
s1ck committed Nov 18, 2021
1 parent 8db863e commit 846a4f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2383,7 +2383,7 @@ mod cmd {
) -> anyhow::Result<()> {
let line = args[0].parse::<usize>()?;

goto_line_internal(&mut cx.editor, NonZeroUsize::new(line));
goto_line_impl(&mut cx.editor, NonZeroUsize::new(line));

let (view, doc) = current!(cx.editor);

Expand Down Expand Up @@ -3383,10 +3383,10 @@ fn push_jump(editor: &mut Editor) {
}

fn goto_line(cx: &mut Context) {
goto_line_internal(&mut cx.editor, cx.count)
goto_line_impl(&mut cx.editor, cx.count)
}

fn goto_line_internal(editor: &mut Editor, count: Option<NonZeroUsize>) {
fn goto_line_impl(editor: &mut Editor, count: Option<NonZeroUsize>) {
if let Some(count) = count {
push_jump(editor);

Expand Down

0 comments on commit 846a4f1

Please sign in to comment.