Skip to content

alt-j moves below the bottom of the list to an invalid position #4761

@sschuldenzucker

Description

@sschuldenzucker

Is there an existing issue for this?

  • I have searched the existing issues

Midnight Commander version and build configuration

GNU Midnight Commander 4.8.33
Built with GLib 2.82.4
Built with S-Lang 2.3.3 with terminfo database
Built with libssh2 1.11.1
With builtin editor
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
With multiple codepages support
Virtual File Systems:
 cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, shell
Data types:
 char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64; uintmax_t: 64;

Operating system

MacOS

Is this issue reproducible using the latest version of Midnight Commander?

  • I confirm the issue is still reproducible with the latest version of Midnight Commander

How to reproduce

  1. Enter some directory that is smaller than one screen (i.e., there is some space at the bottom of the listing view.
  2. Press alt-j

Expected behavior

The selection jumps to the last item in the list. (A-j jumps to the last visible item, which is the last item in the list)

Actual behavior

A-j jumps to an invalid "virtual" position that would be at the bottom of the screen if the directory had more items. No file is selected. You can press Up a couple times and it will eventually arrive at the actual bottom of the list (the last file). While mc is in the invalid state, Copy, Move, Alt-ret, etc., do nothing. mc miraculously doesn't crash.

Additional context

No response

Metadata

Metadata

Assignees

Labels

area: coreIssues not related to a specific subsystemprio: mediumHas the potential to affect progressstate: approvedIf not using PRs: associated branch has been approved

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions