core: fix "/window scroll -N" on a buffer with free content
script: fix scroll on script buffer in the detailed view of script (closes #6)