fix drawing highlight when in insert mode at the end of a line

This commit is contained in:
josh committed 2017-01-21 12:31:50 -05:00
1 parent 5eb5039d38
commit 8d6112ed32
1 file changed
+6 -1
+6 -1
View File
@@ -314,7 +314,12 @@ int BufferPane::draw_buffer_line(int screen_row, const Buffer::Iterator & start_
{
int row = draw_row;
int col = screen_column;
for (int i = 0; i < character_width; i++)
int c_w = character_width;
if (insert_mode() && (code_point == '\n'))
{
c_w = 1;
}
for (int i = 0; i < c_w; i++)
{
draw_crosshair(col_x(col), row_y(row));
col++;