comparison src/screen.c @ 6799:45d3208c8754 v7.4.721

patch 7.4.721 Problem: When 'list' is set Visual mode does not highlight anything in empty lines. (mgaleski) Solution: Check the value of lcs_eol in another place. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Mon, 04 May 2015 16:52:01 +0200
parents adb3699fa30c
children 47ebd4065059
comparison
equal deleted inserted replaced
6798:f1759b3c709f 6799:45d3208c8754
4701 c_extra = ' '; 4701 c_extra = ' ';
4702 c = ' '; 4702 c = ' ';
4703 } 4703 }
4704 } 4704 }
4705 else if (c == NUL 4705 else if (c == NUL
4706 && ((wp->w_p_list && lcs_eol > 0) 4706 && (wp->w_p_list
4707 || ((fromcol >= 0 || fromcol_prev >= 0) 4707 || ((fromcol >= 0 || fromcol_prev >= 0)
4708 && tocol > vcol 4708 && tocol > vcol
4709 && VIsual_mode != Ctrl_V 4709 && VIsual_mode != Ctrl_V
4710 && ( 4710 && (
4711 # ifdef FEAT_RIGHTLEFT 4711 # ifdef FEAT_RIGHTLEFT
4747 p_extra = at_end_str; 4747 p_extra = at_end_str;
4748 n_extra = 1; 4748 n_extra = 1;
4749 c_extra = NUL; 4749 c_extra = NUL;
4750 } 4750 }
4751 } 4751 }
4752 if (wp->w_p_list) 4752 if (wp->w_p_list && lcs_eol > 0)
4753 c = lcs_eol; 4753 c = lcs_eol;
4754 else 4754 else
4755 c = ' '; 4755 c = ' ';
4756 lcs_eol_one = -1; 4756 lcs_eol_one = -1;
4757 --ptr; /* put it back at the NUL */ 4757 --ptr; /* put it back at the NUL */