author | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 11 Nov 2006 22:59:34 +0000 (17:59 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 12 Nov 2006 05:16:01 +0000 (00:16 -0500) | ||
commit | 68e009dec44a023efd6f6fcd61c1583b23b04f32 | |
tree | 1d83ab895536c1ad1a94f1d882dbf106cb6b33dc | tree | snapshot |
parent | 03e4ec5364f955f5e1af0775166c679ed60f7fb4 | commit | diff |
git-gui: Correctly handle files containing LF in their name.
If we are given a file whose path name contains an LF (\n) we now
escape it by inserting the common escape string \n instead of the
LF character whenever we display the name in the UI. This way the
text fields don't start to span multiple lines just to display one
file, and it keeps the line numbers correct within the file lists.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
If we are given a file whose path name contains an LF (\n) we now
escape it by inserting the common escape string \n instead of the
LF character whenever we display the name in the UI. This way the
text fields don't start to span multiple lines just to display one
file, and it keeps the line numbers correct within the file lists.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui | diff | blob | history |