xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 66938b797b8660165884e515e9e863de46f36dd3

Fix but with 'scrolloff' and the last line in view
Appeared only when list_rows + 'scrolloff' == window_rows.
Author: xaizek
Author date (UTC): 2011-11-13 20:08
Committer name: xaizek
Committer date (UTC): 2011-11-13 20:08
Parent(s): 26f637448b5d9aed83098d0e2413352c3e2f2b89
Signing key:
Tree: 8229a9a4d85b0909743cbc93628f291c55f4374c
File Lines added Lines deleted
src/filelist.c 9 6
File src/filelist.c changed (mode: 100644) (index 3e8c51a5e..a8078cb53)
... ... move_curr_line(FileView *view, int pos)
959 959 view->curr_line = s; view->curr_line = s;
960 960 redraw = 1; redraw = 1;
961 961 } }
962 if((view->top_line + view->window_rows) - pos < s)
962 if(view->top_line + view->window_rows < view->list_rows)
963 963 { {
964 view->top_line += s - ((view->top_line + view->window_rows) - pos);
965 if(pos + s > view->list_rows)
966 view->top_line -= pos + s - view->list_rows;
967 view->curr_line = pos - view->top_line;
968 redraw = 1;
964 if((view->top_line + view->window_rows) - pos < s)
965 {
966 view->top_line += s - ((view->top_line + view->window_rows) - pos);
967 if(pos + s > view->list_rows)
968 view->top_line -= pos + s - view->list_rows;
969 view->curr_line = pos - view->top_line;
970 redraw = 1;
971 }
969 972 } }
970 973 } }
971 974
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master