Reject 0 wrap column
This commit is contained in:
parent
8dd808726d
commit
4032d05c79
|
@ -653,7 +653,7 @@ struct WrapHighlighter : Highlighter
|
||||||
DisplayBuffer& display_buffer, BufferRange) override
|
DisplayBuffer& display_buffer, BufferRange) override
|
||||||
{
|
{
|
||||||
ColumnCount wrap_column = context.window().display_setup().window_range.column;
|
ColumnCount wrap_column = context.window().display_setup().window_range.column;
|
||||||
if (wrap_column < 0)
|
if (wrap_column <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const Buffer& buffer = context.buffer();
|
const Buffer& buffer = context.buffer();
|
||||||
|
@ -705,7 +705,7 @@ struct WrapHighlighter : Highlighter
|
||||||
void do_compute_display_setup(const Context& context, HighlightPass, DisplaySetup& setup) override
|
void do_compute_display_setup(const Context& context, HighlightPass, DisplaySetup& setup) override
|
||||||
{
|
{
|
||||||
ColumnCount wrap_column = setup.window_range.column;
|
ColumnCount wrap_column = setup.window_range.column;
|
||||||
if (wrap_column < 0)
|
if (wrap_column <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const Buffer& buffer = context.buffer();
|
const Buffer& buffer = context.buffer();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user