nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit c42489d946a18206ea46fe1d6e13dfd86906792d
parent 2b438e6ef4e64aa096d7e6f795fb8a57c7a8c504
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 21 Nov 2017 20:43:18 +0100

linting: switch the mark off when the linter starts

Because the highlighting hinders the display of affected lines,
and, more importantly, only the highlighted part would be written
if the file was modified and the user answers yes to the "Save?"
prompt.

This fixes https://savannah.gnu.org/bugs/?52474.

Diffstat:
Msrc/text.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -3068,6 +3068,9 @@ void do_linter(void) return; } + openfile->mark_set = FALSE; + edit_refresh(); + if (openfile->modified) { int i = do_yesno_prompt(FALSE, _("Save modified buffer before linting?"));