From 271bd5d3baeef43353082facb8a3b1ab724024af Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 16 Aug 2022 16:01:39 +0200 Subject: [PATCH] tweaks: allow the linter to be used in view mode, as it makes no changes The linter has been marked as NOVIEW since it was introduced in 2.3.3. But that was a mistake, as the tool does not change the buffer contents. This addresses a minor part of https://savannah.gnu.org/bugs/?62903. --- src/nano.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nano.c b/src/nano.c index 8d4f879b..f6bfd30d 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1386,7 +1386,7 @@ bool changes_something(const void *f) f == do_spell || #endif #ifdef ENABLE_COLOR - f == do_linter || f == do_formatter || + f == do_formatter || #endif #ifdef ENABLE_WORDCOMPLETION f == complete_a_word ||