nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] Patch to put current column in statusbar


From: Keith Winston
Subject: [Nano-devel] Patch to put current column in statusbar
Date: Wed, 10 Apr 2002 19:16:30 -0400
User-agent: Mutt/1.3.22.1i

Greetings.

I just downloaded nano over the weekend and I really like what everyone
has done with it.  It's just a damn cool editor.

One thing I wanted in the status bar when you request the cursor
position is the current column.  I'm usually not interested in the
absolute character position (e.g. character 439 of 2000).  Anyway, I've
included a two line patch that adds the column position to the status
bar whenever cursor position is requested leaving everything else
intact.

This patch was built based on the 1.0.8 stable source for the winio.c
file.  Since I don't know if the list accepts attachments and it is only
two lines, I just included it.  Watch out for line wrapping in the
e-mail message though, the new lines are wrapped below.  Here is the
diff:

1207,1208c1207,1208
<     statusbar(_("line %d of %d (%.0f%%), character %d of %d
(%.0f%%)"),
<             current->lineno, totlines, linepct, i, totsize, bytepct);
---
>     statusbar(_("line %d of %d (%.0f%%), col %d, character %d of %d
(%.0f%%)"),
>             current->lineno, totlines, linepct, current_x, i, totsize,
bytepct);

Does anyone else want the column position in the status bar?  I'd like
to see it in the next version, but since I am new here, maybe this idea
has been discussed and rejected already.  In any case, thanks to all the
developers for a great editor!

Best Regards,
Keith
-- 
LPIC-2, MSCE, N+
I can C for miles and miles
Got spam?  Get SPASTIC http://spastic.sourceforge.net



reply via email to

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