comparison src/gui.c @ 15636:6f1c7e9a6393 v8.1.0826

patch 8.1.0826: too many #ifdefs commit https://github.com/vim/vim/commit/29ddebef4038d2d2b3bc9d8d3b0109f4046d6fbf Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 26 17:28:26 2019 +0100 patch 8.1.0826: too many #ifdefs Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Jan 2019 17:30:15 +0100
parents 1ec942f1b648
children 59a1ff689b4d
comparison
equal deleted inserted replaced
15635:c51d2a06f5f9 15636:6f1c7e9a6393
4597 value = curwin->w_leftcol; 4597 value = curwin->w_leftcol;
4598 4598
4599 longest_lnum = gui_find_longest_lnum(); 4599 longest_lnum = gui_find_longest_lnum();
4600 max = scroll_line_len(longest_lnum); 4600 max = scroll_line_len(longest_lnum);
4601 4601
4602 #ifdef FEAT_VIRTUALEDIT
4603 if (virtual_active()) 4602 if (virtual_active())
4604 { 4603 {
4605 /* May move the cursor even further to the right. */ 4604 /* May move the cursor even further to the right. */
4606 if (curwin->w_virtcol >= (colnr_T)max) 4605 if (curwin->w_virtcol >= (colnr_T)max)
4607 max = curwin->w_virtcol; 4606 max = curwin->w_virtcol;
4608 } 4607 }
4609 #endif
4610 4608
4611 #ifndef SCROLL_PAST_END 4609 #ifndef SCROLL_PAST_END
4612 max += curwin->w_width - 1; 4610 max += curwin->w_width - 1;
4613 #endif 4611 #endif
4614 /* The line number isn't scrolled, thus there is less space when 4612 /* The line number isn't scrolled, thus there is less space when