By simply overwriting the provided template strings with the default
ones a bit later.
Here's one possible fix (untested):
--- dpv.c.orig 2016-06-16 23:14:00.466195000 +0400
+++ dpv.c 2016-06-16 23:15:39.306944000 +0400
@@ -455,12 +455,16 @@
/* Set status formats and action */
if (line_mode) {
- config->status_solo = LINE_STATUS_SOLO;
- config->status_many = LINE_STATUS_SOLO;
+ if (!config->status_solo)
+ config->status_solo = LINE_STATUS_SOLO;
+ if (!config->status_many)
+ config->status_many = LINE_STATUS_SOLO;
config->action = operate_on_lines;
} else {
- config->status_solo = BYTE_STATUS_SOLO;
- config->status_many = BYTE_STATUS_SOLO;
+ if (!config->status_solo)
+ config->status_solo = BYTE_STATUS_SOLO;
+ if (!config->status_many)
+ config->status_many = BYTE_STATUS_SOLO;
config->action = operate_on_bytes;
}
_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"