Skip to content

Commit

Permalink
vis: remove now unused variable in prompt handling code
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Jan 5, 2018
1 parent e0b1a90 commit a94b52f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion vis-prompt.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ static const char *prompt_enter(Vis *vis, const char *keys, const Arg *arg) {
else if (prompt->file == vis->search_file)
pattern = "^(/|\\?)";
if (pattern && regex && text_regex_compile(regex, pattern, REG_EXTENDED|REG_NEWLINE) == 0) {
char c;
size_t end = text_line_end(txt, pos);
size_t prev = text_search_backward(txt, end, regex);
if (prev > pos)
Expand Down

0 comments on commit a94b52f

Please sign in to comment.