Rename 'lines' variable to 'line_range'
This avoids a conflict with the macro defined in <term.h>.
This commit is contained in:
parent
e3750c7c1b
commit
76fc3b1b04
|
@ -1849,7 +1849,7 @@ int clones = 0;
|
|||
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;
|
||||
while (*p && isdigit((unsigned char)*p))
|
||||
|
@ -1864,7 +1864,7 @@ char *q = line, *p = line;
|
|||
|
||||
BUILT_IN_COMMAND(pastecmd)
|
||||
{
|
||||
char *lines;
|
||||
char *line_range;
|
||||
char *channel = NULL;
|
||||
Window *win;
|
||||
int winref = 0;
|
||||
|
@ -1877,8 +1877,8 @@ BUILT_IN_COMMAND(pastecmd)
|
|||
#else
|
||||
Display *start_pos;
|
||||
#endif
|
||||
if ((lines = next_arg(args, &args)))
|
||||
get_range(lines, &start_line, &end_line);
|
||||
if ((line_range = next_arg(args, &args)))
|
||||
get_range(line_range, &start_line, &end_line);
|
||||
if (!args || !*args)
|
||||
channel = get_current_channel_by_refnum(0);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue