If no file is selected, there is no automatic scrolling caused by cm_countdircontent.
To reproduce:
- go to a directory that contains subdirs and more files than can be displayed in the current window (listbox), use of PageUp/PageDown should be possible at least once.
- activate long view (Ctrl+F2)
- press PageDown twice
- select some file(s) that you see there
- press Home to scroll back to the top of the list
(the selected file now should NOT be displayed - if it is, you could reduce TC's window size) - place the cursor somewhere in the middle of the displayed part of the list
- call cm_countdircontent

the file under cursor moves from the middle of the screen to the top (if there are enough files behind it).
Details:
If the first selected file is higher than the upper end of the currently viewed part of the list, then cm_countdircontent scrolls the file list to display
the file under the cursor in the last line.
If the first selected file is lower than the lower end of the currently viewed part of the list, then cm_countdircontent scrolls the file list to display
the file under the cursor in the first line.
If no file is selected, there is no scrolling at all.
Expected behaviour:
There should be no scrolling of the displayed file list/listbox initiated by cm_countdircontent - no matter if in long/short view or if file are selected or not.