[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] [PATCH] bug #34898: [Request] reuse existing buffers when a

From: Rishabh Dave
Subject: [Nano-devel] [PATCH] bug #34898: [Request] reuse existing buffers when adding files
Date: Mon, 24 Jul 2017 01:49:25 +0530


I have attempted to write a patch for the first comment on this bug
page -

About the second comment, I couldn't replicate it. Nano didn't open an
empty buffer for me.

Besides these, patch also fixes the same issue when it appears in a
different scenario; when nano is invoked with multiple filenames
amongst which several are same nano would create buffers for each
filename irrespective of repitition. That is doing "src/nano README
TODO TODO" would create 2 buffers for TODO.

About the patch itself: it adds a function that compares the given
filename with the current name of the open files. I have tested and
fixed a couple of cases.

Attachment: 0001-files-don-t-create-a-new-buffer-if-a-file-already-ha.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]