projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Abbreviate DATADIR to ~~ while saving XB themes
[xboard.git]
/
dialogs.c
diff --git
a/dialogs.c
b/dialogs.c
index
64001c2
..
9bab615
100644
(file)
--- a/
dialogs.c
+++ b/
dialogs.c
@@
-3395,3
+3395,11
@@
ActivateTheme (int col)
DrawPosition(True, NULL);
}
+char *
+Shorten (char *s)
+{
+ static char buf[MSG_SIZ];
+ if(strstr(s, dataDir) != s) return s;
+ snprintf(buf, MSG_SIZ, "~~%s", s + strlen(dataDir));
+ return buf;
+}