Compare commits

..

1 Commits

Author SHA1 Message Date
d4fbc26fea build: untrack generated src/gitversion.h.in
All checks were successful
CI Code / Check spelling (pull_request) Successful in 18s
CI Code / Check coding style (pull_request) Successful in 33s
CI Code / Linux (debian) (pull_request) Successful in 4m24s
CI Code / Linux (ubuntu) (pull_request) Successful in 6m52s
CI Code / Code Coverage (pull_request) Successful in 7m31s
CI Code / Linux (arch) (pull_request) Successful in 11m0s
The file is gitignored and regenerated by the build recipe from
.git/HEAD/.git/index; it was committed by mistake during the upstream
sync. Untrack it so builds no longer dirty the working tree. The
version string behaviour is unchanged.
2026-06-23 13:55:23 +03:00
2 changed files with 1 additions and 19 deletions

View File

@@ -1,6 +0,0 @@
#ifndef PROF_GIT_BRANCH
#define PROF_GIT_BRANCH @PROF_GIT_BRANCH@
#endif
#ifndef PROF_GIT_REVISION
#define PROF_GIT_REVISION @PROF_GIT_REVISION@
#endif

View File

@@ -2001,19 +2001,7 @@ _win_print_internal(ProfWin* window, const char* show_char, int pad_indent, GDat
}
}
// reserve pad rows for this message's full height so a tall message isn't clipped at the pad bottom (a clipped height desyncs the scroll offset)
int usable = getmaxx(window->layout->win) - (indent + pad_indent);
if (usable < 1) {
usable = 1;
}
int msg_nl = 0;
for (const char* mp = message + offset; *mp; mp++) {
if (*mp == '\n') {
msg_nl++;
}
}
int est_lines = msg_nl + (int)(utf8_display_len(message + offset) / usable) + 2;
_win_ensure_pad_capacity(window, window->layout->win, getcury(window->layout->win) + est_lines);
_win_ensure_pad_capacity(window, window->layout->win, getcury(window->layout->win));
if (prefs_get_boolean(PREF_WRAP)) {
_win_print_wrapped(window->layout->win, message + offset, indent, pad_indent);