Mercurial > vim
view runtime/macros/less.sh @ 12916:af2e0401eb8c v8.0.1334
patch 8.0.1334: splitting a window with a WinBar damages window layout
commit https://github.com/vim/vim/commit/3167c3e7010ac7e2fd7d3aa198dd2d1dcff8ecc8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 25 14:19:43 2017 +0100
patch 8.0.1334: splitting a window with a WinBar damages window layout
Problem: Splitting a window with a WinBar damages window layout.
(Lifepillar)
Solution: Take the winbar into account when computing the new window
position. Add WINBAR_HEIGHT().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 25 Nov 2017 14:30:05 +0100 |
parents | 1b584a6f446c |
children |
line wrap: on
line source
#!/bin/sh # Shell script to start Vim with less.vim. # Read stdin if no arguments were given and stdin was redirected. if test -t 1; then if test $# = 0; then if test -t 0; then echo "Missing filename" 1>&2 exit fi vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' - else vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' "$@" fi else # Output is not a terminal, cat arguments or stdin if test $# = 0; then if test -t 0; then echo "Missing filename" 1>&2 exit fi cat else cat "$@" fi fi