Rename 'lines' variable to 'line_range'
This avoids a conflict with the macro defined in <term.h>.
This commit is contained in:
@@ -1849,7 +1849,7 @@ int clones = 0;
|
|||||||
bitchsay("Found %d clones", clones);
|
bitchsay("Found %d clones", clones);
|
||||||
}
|
}
|
||||||
|
|
||||||
void get_range(char *line, int *start, int *end)
|
static void get_range(char *line, int *start, int *end)
|
||||||
{
|
{
|
||||||
char *q = line, *p = line;
|
char *q = line, *p = line;
|
||||||
while (*p && isdigit((unsigned char)*p))
|
while (*p && isdigit((unsigned char)*p))
|
||||||
@@ -1864,7 +1864,7 @@ char *q = line, *p = line;
|
|||||||
|
|
||||||
BUILT_IN_COMMAND(pastecmd)
|
BUILT_IN_COMMAND(pastecmd)
|
||||||
{
|
{
|
||||||
char *lines;
|
char *line_range;
|
||||||
char *channel = NULL;
|
char *channel = NULL;
|
||||||
Window *win;
|
Window *win;
|
||||||
int winref = 0;
|
int winref = 0;
|
||||||
@@ -1877,8 +1877,8 @@ BUILT_IN_COMMAND(pastecmd)
|
|||||||
#else
|
#else
|
||||||
Display *start_pos;
|
Display *start_pos;
|
||||||
#endif
|
#endif
|
||||||
if ((lines = next_arg(args, &args)))
|
if ((line_range = next_arg(args, &args)))
|
||||||
get_range(lines, &start_line, &end_line);
|
get_range(line_range, &start_line, &end_line);
|
||||||
if (!args || !*args)
|
if (!args || !*args)
|
||||||
channel = get_current_channel_by_refnum(0);
|
channel = get_current_channel_by_refnum(0);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user