Skip to content

Commit

Permalink
Colorize last column
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaboiss committed Jan 25, 2024
1 parent 1f859ec commit df4026c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rainbow-csv.el
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
(line-beginning-position) (line-end-position))))
(n (1+ n)))
(dotimes (i n)
(let* ((r (format "^\\([^%c\n]+%c\\)\\{%d\\}"
(let* ((r (format "^\\([^%c\n]+[%c\n]\\)\\{%d\\}"
separator separator (1+ i)))
(len (length rainbow-csv-colors))
(color (nth (% i len) rainbow-csv-colors)))
Expand Down

0 comments on commit df4026c

Please sign in to comment.