Thread (34 messages) flat view 34 messages, 3 authors, 2016-06-15

Re: [PATCH 17/18] revert: Introduce --continue to continue the operation

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:51:44

Ramkumar Ramachandra wrote:
quoted
On Thursday 28 July 2011 18:52:30 Ramkumar Ramachandra wrote:
quoted
quoted
+     for (p = buf.buf; *p; p = strchr(p, '\n') + 1) {
[...]
Yes, that was intentional.  Every editor I know of inserts a '\n' at
the end of the last line, and I've seen some applications warn/ break
when the last line is not terminated with '\n'.  I suppose another
reason to not change this is consistency -- we don't have to handle
the last line using a special case.  So, I personally don't like it,
but I'll add a special case if you insist.
What is the failure mode?  If it is a baffling segfault, then I
insist.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help