diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-10-22 16:43:43 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-22 16:43:43 +0200 | 
| commit | e35a66d39670d19d50bf732b3058c12e33c77440 (patch) | |
| tree | 18d59f4cae60977f1c4deba7d405b9fbc032a3b0 /src/nvim/misc1.c | |
| parent | 42b80c3acfbb0f813a62c382b947d7d0d5477009 (diff) | |
| parent | a3134bc4809dff52cc9a635103a48b48d7c2d148 (diff) | |
| download | rneovim-e35a66d39670d19d50bf732b3058c12e33c77440.tar.gz rneovim-e35a66d39670d19d50bf732b3058c12e33c77440.tar.bz2 rneovim-e35a66d39670d19d50bf732b3058c12e33c77440.zip | |
Merge #7430 'Ignore virtcols after 32000'
Diffstat (limited to 'src/nvim/misc1.c')
| -rw-r--r-- | src/nvim/misc1.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 5270687a4d..137de84953 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -1273,8 +1273,8 @@ int plines_win_nofold(win_T *wp, linenr_T lnum)     * Add column offset for 'number', 'relativenumber' and 'foldcolumn'.     */    width = wp->w_width - win_col_off(wp); -  if (width <= 0) { -    return 32000;  // bigger than the number of lines of the screen +  if (width <= 0 || col > 32000) { +    return 32000;  // bigger than the number of screen columns    }    if (col <= (unsigned int)width) {      return 1; | 
