Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 30d50a5

Browse files
committed
Fix #7905: Dotfiles should be colored in white
1 parent 97c3e2e commit 30d50a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/ViewUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ define(function (require, exports, module) {
397397
ext = FileUtils.getSmartFileExtension(name),
398398
i = name.lastIndexOf("." + ext);
399399

400-
if (i >= 0) {
400+
if (i > 0) {
401401
// Escape all HTML-sensitive characters in filename.
402402
name = _.escape(name.substring(0, i)) + "<span class='extension'>" + _.escape(name.substring(i)) + "</span>";
403403
} else {

0 commit comments

Comments
 (0)