Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBatty committed Jan 15, 2025
1 parent 6c26730 commit a356e73
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions forc-plugins/forc-debug/src/cli/state.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{cli::commands::Commands, FuelClient};
use crate::{cli::commands::Commands, names, FuelClient};
use rustyline::{
completion::Completer,
highlight::{CmdKind, Highlighter},
Expand Down Expand Up @@ -56,12 +56,7 @@ impl Completer for DebuggerHelper {

// Register command context
if self.commands.is_register_command(first_word) && line[..word_start].ends_with(' ') {
let register_names = vec![
"zero", "one", "of", "pc", "ssp", "sp", "fp", "hp", "err", "ggas", "cgas",
"bal", "is", "ret", "retl", "flag",
];

let matches: Vec<String> = register_names
let matches: Vec<String> = names::REGISTERS
.into_iter()
.filter(|name| name.starts_with(word_to_complete))
.map(String::from)
Expand Down

0 comments on commit a356e73

Please sign in to comment.