On 5/6/26 3:22 AM, David C Rankin wrote:
On 5/5/26 8:10 PM, Pocket wrote:
I am gonna try the following sed in the PKGBUILD
sed -i term.c -e '/((version == 100/s/ || version == 115//'
placed in the prepare function like this
prepare() {
(cd vim/src
sed -i term.c -e '/((version == 100/s/ || version == 115//'
# define the place for the global (g)vimrc file (set to /etc/vimrc)
sed -E 's|^.*(#define SYS_.*VIMRC_FILE.*").*$|\1|g' -i feature.h
sed -E 's|^.*(#define VIMRC_FILE.*").*$|\1|g' -i feature.h
autoconf
)
cp -a vim gvim
}
Added this to
package_vim-runtime() {
# rc files
# install -Dm 644 "${srcdir}"/vimrc "${pkgdir}"/etc/vimrc
install -Dm 644 "${srcdir}"/archlinux.vim "${pkgdir}"/etc/vimrc
install -Dm 644 "${srcdir}"/archlinux.vim \
"${pkgdir}"/usr/share/vim/vimfiles/archlinux.vim
That replaces vimrc with archlinux.vim in the /etc/directory
I'm not convinced it is vimrc related. I can run with --clean (or -U
NONE) to skip vimrc/.vimrc completely and I still get the problem.
The current source has 115 as part of the conditional (line 5176 in
src/term.c):
// libvterm sends 0;100;0
// Konsole sends 0;115;0 and works the same way
if ((version == 100 || version == 115) && arg[0] == 0 &&
arg[2] == 0)
{
// If run from Vim $COLORS is set to the number of
// colors the terminal supports. Otherwise assume
// 256, libvterm supports even more.
if (mch_getenv((char_u *)"COLORS") == NULL)
may_adjust_color_count(256);
// Libvterm can handle SGR mouse reporting.
term_props[TPR_MOUSE].tpr_status = TPR_MOUSE_SGR;
term_props[TPR_DECRQM].tpr_status = TPR_YES;
}
The patch the vim devs suggestion working the issue was to remove the
115 (though it left me scratching my head). There has to be more
changed that is impact the terminal behavior other than that. I've got
a rather slow box (fast enough for my needs), but I would grow much
more gray hair attempting a git bisect on it.
Let us know if changing the conditional works for you.
The patch/correction does not work
Build 9.2.0357-1: patch/correction does not work
Build 9.2.0388-1: patch/correction does not work
displays the pp on new file
arrow keys work and insert etc work
Build 9.2.0437-1:
BTW the term I am using is qterminal
Thank you, I'll add that to the issue the next time I comment.
--
Hindi madali ang maging ako