[patch] improvements to the internal viewer

Roland Illig roland.illig at gmx.de
Thu May 12 11:03:33 UTC 2005


This patch modifies the internal viewer as follows:

* provide functions for translating file offsets into
   line/column pairs and vice versa.
* display line/column in the status line.
* the F2 key does not switch between the text/hex
   sections in hexedit mode, but switches back to view
   mode. It is now a simple toggle, as the others.
* switching to wrap mode does not load the whole file
   into memory when using the growing buffer.
* provide a consistent set of cursor movement functions
* view_moveto_bol() and view_moveto_eol() work in text mode,
   too

Roland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: view.c.patch.gz
Type: application/x-gzip
Size: 11618 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20050512/463fb6f8/attachment.bin>


More information about the mc-devel mailing list