We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9371fc commit a0ec76fCopy full SHA for a0ec76f
src/core/commit.cpp
@@ -136,7 +136,7 @@ ftxui::Element addCommLine(RenderLine lineType,
136
// length adapted hash
137
std::string commit_top_text = commit.hash;
138
if (commit_top_text.size() > 8) {
139
- commit_top_text = GAP_TREE_COMMITS + commit.hash.substr(commit.hash.size() - 8);
+ commit_top_text = GAP_TREE_COMMITS + commit.hash.substr(0, 8);
140
}
141
Element commit_top_text_element = text(commit_top_text);
142
// highlighted / selected
0 commit comments