I have a certain bug regarding listings. I have used the \lstset command to configure my lstlisting environment.
Somehow, when I have a line that is too long to fit into one row the listing breaks it properly, but somehow the border gets the same colour as the font.

Here is the \lstset:
\lstnewenvironment{pascalCode}[1][]
{
\lstset{
backgroundcolor=\color{lightgrey},
breaklines=true,
basicstyle=\footnotesize,
keywordstyle=\color{Blue},
commentstyle=\color{DarkGreen}\textit,
numbers=left,
numberstyle=\footnotesize,
stringstyle=\color{red},
showspaces = false,
showstringspaces = false,
tabsize = 2,
%numbers=left,
%numbersyle=\tiny
frame=single,
xleftmargin=5pt,
xrightmargin=3pt,
language = Pascal,
aboveskip = 20pt,
#1
}
}{}
If you have any ideas how to fix that please reply.

