From d7657709a54750766aa2803279a7353e6a7fb6df Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Tue, 10 Jan 2017 10:16:51 +0100 Subject: Fix line numbering for large lines --- buffer.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'buffer.cpp') diff --git a/buffer.cpp b/buffer.cpp index 9b91e43..97c898f 100644 --- a/buffer.cpp +++ b/buffer.cpp @@ -302,6 +302,7 @@ i64 numberWidth(i64 number){ void Buffer::show(i64 atx,i64 aty,i64 width,i64 height){ static const Style gutterStyle={3,9,false,false}; + static const Style gutterContinuationStyle={1,9,false,true}; static const Style textStyle={9,9,false,false}; static const Style specialStyle={5,9,false,false}; @@ -322,13 +323,17 @@ void Buffer::show(i64 atx,i64 aty,i64 width,i64 height){ i64 curScreenX=-1,curScreenY=-1; // cerr<<"Buffer::show: screen.size()="<