nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] Misc Patch (Fill Cols/Wrap At and Narrow Window changes)


From: Carl Drinkwater
Subject: [Nano-devel] Misc Patch (Fill Cols/Wrap At and Narrow Window changes)
Date: Sat, 18 May 2002 17:43:19 +0100

Hi all,

Find attached a patch against 1.1.9-cvs that solves these pretty minor problems ...

o Fixes problem with -r on the command line that stops subsequent positive -r's not overwriting previous negative -r's. (Sounds confusing huh?) Using ...

      nano -r -6 -r 30

... resulted in wrapping at COLS-6, when really it should be 30. This is fixed. The problem was wrap_at not being set back to 0 with the presence of a new, positive -r option.

o Setting a narrow window sometimes meant that either the version string, or the File: or DIR: line carried over to the second line of the display. It was especially apparent when using a long version string. This is not the case anymore. With this patch, it crops the version string if necessary, and doesn't display the File/DIR: text if there isn't space. Modified and View will appear in any case, and are padded with a space to try to ensure neatness. Not sure that the new behaviour is any better really, but it looks a bit neater, and what do people expect when running an editor in a narrow window anyway? :)

Thanks to David Benbennick for telling me about these in the first place.

Regards,
Carl.

Attachment: fillCols.patch.gz
Description: GNU Zip compressed data



reply via email to

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