summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2023-06-26 23:17:01 +0200
committerpgen <p.gen.progs@gmail.com>2023-06-26 23:17:01 +0200
commit3a7ba32666f2c21bfac8462c188794e1b30f0246 (patch)
tree7face6539f4363271be8818afa30c165dc849f11
parenta3044266f398018ae0eb250e59779ca38aef52a3 (diff)
Fix the direct access number size
When the initial direct access index is explicitly defined, the number of its digits must be taken into account when calculating the size of direct access numbers on the screen.
-rw-r--r--smenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smenu.c b/smenu.c
index 609c75d..76b2514 100644
--- a/smenu.c
+++ b/smenu.c
@@ -10088,7 +10088,7 @@ main(int argc, char * argv[])
/* """""""""""""""""""""""""""""""""""""""""""""""" */
if ((daccess.mode & DA_TYPE_AUTO) && daccess.length == -2)
{
- long n = count;
+ long n = count + daccess_index - 1;
daccess.length = 0;