@@ -2485,6 +2485,10 @@ mod cmd {
2485 args: &[&str],
2485 args: &[&str],
2486 _event: PromptEvent,
2486 _event: PromptEvent,
2487 ) -> anyhow::Result<()> {
2487 ) -> anyhow::Result<()> {
2488+ if args.is_empty() {
2489+ bail!("Line number required");
2488 let line = args[0].parse::<usize>()?;
2492 let line = args[0].parse::<usize>()?;
2490 goto_line_impl(&mut cx.editor, NonZeroUsize::new(line));
2494 goto_line_impl(&mut cx.editor, NonZeroUsize::new(line));