diff options
| author | Matthijs Hofstra <thiezz@gmail.com> | 2013-02-09 00:45:00 +0100 |
|---|---|---|
| committer | Matthijs 'Thiez' Hofstra <thiezz@gmail.com> | 2013-02-09 00:57:39 +0100 |
| commit | fd98ea8129d0c4125c15bfc35c68a7c48ae551f3 (patch) | |
| tree | 3c0923246a95731242b7c3352278c221190df743 /src/rt/rust_kernel.cpp | |
| parent | 0c2b4edff5009ff4d2330723d9acbc85af4b12ab (diff) | |
| download | rust-fd98ea8129d0c4125c15bfc35c68a7c48ae551f3.tar.gz rust-fd98ea8129d0c4125c15bfc35c68a7c48ae551f3.zip | |
Fix for issue 2174
The function that formats and prints the squigly line that hilights errors counted tabs as spaces, which resulted in incorrect error messages when tabs were used for indentation. This change compares the highlight line with the previous line and inserts a tab instead of a space whenever such a tab exists on the previous line. Note that error messages will still highlight incorrectly when the previous line include characters that require more than one utf8 code point, as mentioned in issue 3260.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions
