From 4032d05c79f651f2bc0f0ddac835166bde86d962 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 6 May 2017 16:17:33 +0100 Subject: [PATCH] Reject 0 wrap column --- src/highlighters.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index 84596296b..46334a237 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -653,7 +653,7 @@ struct WrapHighlighter : Highlighter DisplayBuffer& display_buffer, BufferRange) override { ColumnCount wrap_column = context.window().display_setup().window_range.column; - if (wrap_column < 0) + if (wrap_column <= 0) return; const Buffer& buffer = context.buffer(); @@ -705,7 +705,7 @@ struct WrapHighlighter : Highlighter void do_compute_display_setup(const Context& context, HighlightPass, DisplaySetup& setup) override { ColumnCount wrap_column = setup.window_range.column; - if (wrap_column < 0) + if (wrap_column <= 0) return; const Buffer& buffer = context.buffer();