From b40992e001775be0db8bb35646e049b4c015b455 Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Mon, 21 Aug 2023 14:00:03 +0200 Subject: [PATCH] integer editor: fix radix prefix --- nested/src/editors/integer/editor.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nested/src/editors/integer/editor.rs b/nested/src/editors/integer/editor.rs index b1fd83f..71684a6 100644 --- a/nested/src/editors/integer/editor.rs +++ b/nested/src/editors/integer/editor.rs @@ -48,6 +48,7 @@ impl ObjCommander for DigitEditor { self.msg.clear(); if self.ctx.read().unwrap().meta_chars.contains(&c) { + eprintln!("digitedit: meta char"); return TreeNavResult::Exit; } else if c.to_digit(self.radix).is_none() { @@ -163,7 +164,9 @@ impl PosIntEditor { PTYListStyle::for_node( &mut node, ( match radix { - 2 => "0d".into(), + 2 => "0b".into(), + 8 => "0o".into(), + 10 => "0d".into(), 16 => "0x".into(), _ => "".into() },