Mercurial > vim
view ci/if_ver-1.vim @ 31829:2a590b4a3fba v9.0.1247
patch 9.0.1247: divide by zero with 'smoothscroll' set and a narrow window
Commit: https://github.com/vim/vim/commit/870219c58c0804bdc55419b2e455c06ac715a835
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 26 14:14:43 2023 +0000
patch 9.0.1247: divide by zero with 'smoothscroll' set and a narrow window
Problem: Divide by zero with 'smoothscroll' set and a narrow window.
Solution: Bail out when the window is too narrow.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 26 Jan 2023 15:15:06 +0100 |
parents | 0878f0fd349b |
children |
line wrap: on
line source
" Print all interface versions for Ubuntu. Part 1. if 1 execute 'source' expand('<sfile>:h') .. '/if_ver-cmd.vim' echo "*** Interface versions ***\n" echo 'Lua:' PrintVer lua print(vim.lua_version, jit and "(LuaJIT)" or "") echo 'MzScheme:' PrintVer mzscheme (display (version)) echo 'Perl:' PrintVer perl print $^V echo 'Ruby:' PrintVer ruby print RUBY_VERSION echo 'Tcl:' PrintVer tcl puts [info patchlevel] echo 'Python 2:' PrintVer python print sys.version endif