Apply vendor patch that implements 1/2 as aliases of l/r.
Requested by: dmalone, Chuck Swiger
This commit is contained in:
@@ -2465,18 +2465,22 @@ Like @samp{eb}, except precede each version with a header that
|
|||||||
shows what file and lines the version came from.
|
shows what file and lines the version came from.
|
||||||
|
|
||||||
@item el
|
@item el
|
||||||
|
@itemx e1
|
||||||
Edit a copy of the left version, then copy the result to the output.
|
Edit a copy of the left version, then copy the result to the output.
|
||||||
|
|
||||||
@item er
|
@item er
|
||||||
|
@itemx e2
|
||||||
Edit a copy of the right version, then copy the result to the output.
|
Edit a copy of the right version, then copy the result to the output.
|
||||||
|
|
||||||
@item l
|
@item l
|
||||||
|
@itemx 1
|
||||||
Copy the left version to the output.
|
Copy the left version to the output.
|
||||||
|
|
||||||
@item q
|
@item q
|
||||||
Quit.
|
Quit.
|
||||||
|
|
||||||
@item r
|
@item r
|
||||||
|
@itemx 2
|
||||||
Copy the right version to the output.
|
Copy the right version to the output.
|
||||||
|
|
||||||
@item s
|
@item s
|
||||||
|
|||||||
+12
-11
@@ -857,11 +857,11 @@ give_help (void)
|
|||||||
fprintf (stderr, "%s", _("\
|
fprintf (stderr, "%s", _("\
|
||||||
ed:\tEdit then use both versions, each decorated with a header.\n\
|
ed:\tEdit then use both versions, each decorated with a header.\n\
|
||||||
eb:\tEdit then use both versions.\n\
|
eb:\tEdit then use both versions.\n\
|
||||||
el:\tEdit then use the left version.\n\
|
el or e1:\tEdit then use the left version.\n\
|
||||||
er:\tEdit then use the right version.\n\
|
er or e2:\tEdit then use the right version.\n\
|
||||||
e:\tEdit a new version.\n\
|
e:\tDiscard both versions then edit a new one.\n\
|
||||||
l:\tUse the left version.\n\
|
l or 1:\tUse the left version.\n\
|
||||||
r:\tUse the right version.\n\
|
r or 2:\tUse the right version.\n\
|
||||||
s:\tSilently include common lines.\n\
|
s:\tSilently include common lines.\n\
|
||||||
v:\tVerbosely include common lines.\n\
|
v:\tVerbosely include common lines.\n\
|
||||||
q:\tQuit.\n\
|
q:\tQuit.\n\
|
||||||
@@ -917,7 +917,8 @@ edit (struct line_filter *left, char const *lname, lin lline, lin llen,
|
|||||||
cmd0 = skip_white ();
|
cmd0 = skip_white ();
|
||||||
switch (cmd0)
|
switch (cmd0)
|
||||||
{
|
{
|
||||||
case 'l': case 'r': case 's': case 'v': case 'q':
|
case '1': case '2': case 'l': case 'r':
|
||||||
|
case 's': case 'v': case 'q':
|
||||||
if (skip_white () != '\n')
|
if (skip_white () != '\n')
|
||||||
{
|
{
|
||||||
give_help ();
|
give_help ();
|
||||||
@@ -931,7 +932,7 @@ edit (struct line_filter *left, char const *lname, lin lline, lin llen,
|
|||||||
cmd1 = skip_white ();
|
cmd1 = skip_white ();
|
||||||
switch (cmd1)
|
switch (cmd1)
|
||||||
{
|
{
|
||||||
case 'b': case 'd': case 'l': case 'r':
|
case '1': case '2': case 'b': case 'd': case 'l': case 'r':
|
||||||
if (skip_white () != '\n')
|
if (skip_white () != '\n')
|
||||||
{
|
{
|
||||||
give_help ();
|
give_help ();
|
||||||
@@ -969,11 +970,11 @@ edit (struct line_filter *left, char const *lname, lin lline, lin llen,
|
|||||||
|
|
||||||
switch (cmd0)
|
switch (cmd0)
|
||||||
{
|
{
|
||||||
case 'l':
|
case '1': case 'l':
|
||||||
lf_copy (left, llen, outfile);
|
lf_copy (left, llen, outfile);
|
||||||
lf_skip (right, rlen);
|
lf_skip (right, rlen);
|
||||||
return true;
|
return true;
|
||||||
case 'r':
|
case '2': case 'r':
|
||||||
lf_copy (right, rlen, outfile);
|
lf_copy (right, rlen, outfile);
|
||||||
lf_skip (left, llen);
|
lf_skip (left, llen);
|
||||||
return true;
|
return true;
|
||||||
@@ -1014,7 +1015,7 @@ edit (struct line_filter *left, char const *lname, lin lline, lin llen,
|
|||||||
(long int) (lline + llen - 1));
|
(long int) (lline + llen - 1));
|
||||||
}
|
}
|
||||||
/* Fall through. */
|
/* Fall through. */
|
||||||
case 'b': case 'l':
|
case '1': case 'b': case 'l':
|
||||||
lf_copy (left, llen, tmp);
|
lf_copy (left, llen, tmp);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -1036,7 +1037,7 @@ edit (struct line_filter *left, char const *lname, lin lline, lin llen,
|
|||||||
(long int) (rline + rlen - 1));
|
(long int) (rline + rlen - 1));
|
||||||
}
|
}
|
||||||
/* Fall through. */
|
/* Fall through. */
|
||||||
case 'b': case 'r':
|
case '2': case 'b': case 'r':
|
||||||
lf_copy (right, rlen, tmp);
|
lf_copy (right, rlen, tmp);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user