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
Attachment:
view.c.patch.gz
Description: GNU Zip compressed data