Skip to content

Commit 84d8c54

Browse files
committed
fix: actually show character in debug output
The &help[j..j] string slice was empty so nothing was shown.
1 parent aff4ba1 commit 84d8c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/help.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ fn wrap_help(help: &mut String, longest_w: usize, avail_chars: usize) {
957957
j = prev_space;
958958
debugln!("Help::wrap_help:iter: prev_space={}, j={}", prev_space, j);
959959
debugln!("Help::wrap_help:iter: Removing...{}", j);
960-
debugln!("Help::wrap_help:iter: Char at {}...{}", j, &help[j..j]);
960+
debugln!("Help::wrap_help:iter: Char at {}: {:?}", j, &help[j..j+1]);
961961
help.remove(j);
962962
help.insert(j, '\n');
963963
}

0 commit comments

Comments
 (0)