Mercurial > vim
comparison src/ex_cmds.c @ 2881:d84a564f28c9 v7.3.214
updated for version 7.3.214
Problem: The text displayed by ":z-" isn't exactly like old Vi.
Solution: Add one to the start line number. (ChangZhuo Chen)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 12 Jun 2011 22:03:23 +0200 |
parents | 8470ac4679c1 |
children | bf283e37792b |
comparison
equal
deleted
inserted
replaced
2880:b23052d0a187 | 2881:d84a564f28c9 |
---|---|
4095 ; | 4095 ; |
4096 | 4096 |
4097 switch (*kind) | 4097 switch (*kind) |
4098 { | 4098 { |
4099 case '-': | 4099 case '-': |
4100 start = lnum - bigness * (linenr_T)(x - kind); | 4100 start = lnum - bigness * (linenr_T)(x - kind) + 1; |
4101 end = start + bigness; | 4101 end = start + bigness - 1; |
4102 curs = end; | 4102 curs = end; |
4103 break; | 4103 break; |
4104 | 4104 |
4105 case '=': | 4105 case '=': |
4106 start = lnum - (bigness + 1) / 2 + 1; | 4106 start = lnum - (bigness + 1) / 2 + 1; |