Hi,
As you may have noticed, when cursor is in the "virtual space" (beyond eoln), our status bar always shows the last "real" column. This small patch adds a new %v (and %V) format specification, which displays a "virtual" column number, as if the line extends to the cursor position. I haven't included sci_get_cursor_virtual_space() is the plugin interface for now.
Since the virtual position normally requires 3 SSM()-s, and is less likely to be used than the line and column, I placed the calls into add_statusbar_statistics() instead of ui_update_statusbar().
Hi,
On Wed, 3 Aug 2011 20:04:18 +0300 Dimitar Zhekov dimitar.zhekov@gmail.com wrote:
As you may have noticed, when cursor is in the "virtual space" (beyond eoln), our status bar always shows the last "real" column. This small patch adds a new %v (and %V) format specification, which displays a "virtual" column number, as if the line extends to the cursor position. I haven't included sci_get_cursor_virtual_space() is the plugin interface for now.
Since the virtual position normally requires 3 SSM()-s, and is less likely to be used than the line and column, I placed the calls into add_statusbar_statistics() instead of ui_update_statusbar().
Has this patch been applied and or commented at some place?
Cheers, Frank
On Sat, 10 Dec 2011 10:53:19 +0100 Frank Lanitz frank@frank.uvena.de wrote:
On Wed, 3 Aug 2011 20:04:18 +0300 Dimitar Zhekov dimitar.zhekov@gmail.com wrote:
As you may have noticed, when cursor is in the "virtual space" (beyond eoln), our status bar always shows the last "real" column. This small patch adds a new %v (and %V) format specification, [...]
Has this patch been applied and or commented at some place?
No. You can fetch an up-to-date .diff from the patch tracker:
http://sourceforge.net/tracker/?func=detail&aid=3399326&group_id=153...
It would have been nice to document the statusbar format specifications in the manual, instead of pointing to src/ui_utils.c...