weixin_39970064
weixin_39970064
2020-12-02 19:38

Status overflows to the next line.

Whenever the status line is longer than the number of columns present in the current window, the text overflows to the next line.

Here you can see the status line displaying correctly:

screen shot 2016-07-18 at 10 42 37 pm

But if I shrink the window, then you can see the defect:

screen shot 2016-07-18 at 10 42 45 pm

Can anyone else reproduce the problem?

I tried compiling with curses and with slang, but it didn't make a difference. This is my info:

 bash
Mutt 1.6.2-neo (2016-06-11)
Copyright (C) 1996-2016 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Darwin 15.5.0 (x86_64)
hcache backend: Berkeley DB 6.1.26: (June 16, 2015)

Compiler:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Configure options: '--with-ssl' '--enable-pop' '--enable-imap' '--enable-smtp' '--with-sasl' '--enable-notmuch' '--enable-hcache' '--prefix=/usr/local/' 'LDFLAGS=-L/opt/local/lib/ -L/usr/local/Cellar/openssl/1.0.2d_1/lib/' 'CPPFLAGS=-I/opt/local/include/ -I /usr/local/Cellar/openssl/1.0.2d_1/include/'

Compilation CFLAGS: -Wall -pedantic -Wno-long-long -g -O2

Compile options:
+CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME -CRYPT_BACKEND_GPGME 
-DEBUG +DL_STANDALONE +ENABLE_NLS -EXACT_ADDRESS -HOMESPOOL -LOCALES_HACK 
-SUN_ATTACHMENT +HAVE_BKGDSET +HAVE_COLOR +HAVE_CURS_SET +HAVE_GETADDRINFO 
+HAVE_GETSID +HAVE_ICONV +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR 
-HAVE_LIBIDN +HAVE_META +HAVE_REGCOMP +HAVE_RESIZETERM +HAVE_START_COLOR 
+HAVE_TYPEAHEAD +HAVE_WC_FUNCS +ICONV_NONTRANS -USE_COMPRESSED +USE_DOTLOCK 
+USE_FCNTL -USE_FLOCK -USE_GNU_REGEX -USE_GSS +USE_HCACHE +USE_IMAP 
+USE_NOTMUCH -USE_NNTP +USE_POP +USE_SASL +USE_SETGID -USE_SIDEBAR +USE_SMTP 
-USE_SSL_GNUTLS +USE_SSL_OPENSSL 
-DOMAIN
-MIXMASTER
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
EXECSHELL="/bin/sh"

patch-quasi-delete-neo-git
patch-progress-neo-git
patch-status-color-neo-git
patch-index-color-neo-git
patch-nested-if-neo-git
patch-cond-date-neo-git
patch-tls-sni-neo-git
patch-sidebar-neo-git
patch-ifdef-neo-git
patch-fmemopen-neo-git
patch-initials-neo-git
patch-trash-neo-git
patch-limit-current-thread-neo-git
patch-skip-quoted-neo-git
patch-compress-neo-git
patch-keywords-neo-git
patch-nntp-neo-git
patch-lmdb-neo-git
patch-1.5.23.smime-encrypt-self.1

To learn more about NeoMutt, visit: http://www.neomutt.org/
If you find a bug in NeoMutt, please raise an issue at:
    https://github.com/neomutt/neomutt/issues
or contact the lead developer: Richard Russon <rich.org>
</rich.org>

该提问来源于开源项目:neomutt/neomutt

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

16条回答

  • weixin_39970064 weixin_39970064 5月前

    , I removed the icons, and the problem persisted:

    neomutt

    screen shot 2016-07-19 at 9 21 41 am

    neomutt (overflow)

    screen shot 2016-07-19 at 9 21 49 am

    Mutt 1.6.2 seems to be working just fine.

    mutt 1.6.2

    screen shot 2016-07-19 at 9 29 10 am

    mutt 1.6.2 (no overflow)

    screen shot 2016-07-19 at 9 29 00 am

    点赞 评论 复制链接分享
  • weixin_39719127 weixin_39719127 5月前

    OK, thanks. I'll try to have a look later.

    点赞 评论 复制链接分享
  • weixin_39608479 weixin_39608479 5月前

    Wild guess, does this issue reproduce with other terminal emulators? (e.g., xterm/urxvt?)

    点赞 评论 复制链接分享
  • weixin_39719127 weixin_39719127 5月前

    I see it with Linux/gnome-terminal

    点赞 评论 复制链接分享
  • weixin_39719127 weixin_39719127 5月前

    Do you know how to git-bisect?

    点赞 评论 复制链接分享
  • weixin_39608479 weixin_39608479 5月前

    I know how to git-bisect.

    I can reproduce with urxvt also. I can try this later today

    点赞 评论 复制链接分享
  • weixin_39719127 weixin_39719127 5月前

    thanks

    点赞 评论 复制链接分享
  • weixin_39608479 weixin_39608479 5月前

    , I think I found the bad commit by bisecting the repo.

    
    
    santiago at ~/.../programas/neomutt ✔ git bisect bad
    ef65b84dd17589d97816a2bc15afe9b57e7ce415 is the first bad commit
    commit ef65b84dd17589d97816a2bc15afe9b57e7ce415
    Author: Richard Russon <rich.org>
    Date:   Sun Jun 5 03:29:06 2016 +0100
    
        rework mutt_draw_statusline()
    
        Refactor, simplify and comment mutt_draw_statusline.
    
        It now calls addnstr() to display strings instead of addch() which was
        causing display problems with some terminals.
    
        Fixes: #41
    
    :100644 100644 dcdaa271b6dac700c23f12157f0bfc129595733f 0d7783270b1db013fd4f36ba954c46643f222d06 M  curs_main.c
    :100644 100644 e4c9283a565f4882aa16c1c234535133b83ba28f bfe78e4fb68558f1dfb4b21c0e5af55ef7e443c9 M  protos.h
    
    </rich.org>
    点赞 评论 复制链接分享
  • weixin_39719127 weixin_39719127 5月前

    good find -- mea culpa. I'll see what I can do.

    点赞 评论 复制链接分享
  • weixin_39719127 weixin_39719127 5月前

    OK, fixed it. (2522b02) I've tested it with, both:

    
    set status_format = "%r-Mutt:_%f_[ﻑﺍﺮﺳی:%M/%m]_Русский:%n_עברית:%o>_日本語:%d_한국어:%F_Tag:%t_Post:%p_Inc:%b_%l___(%s/%S)_%>_(%P)__XYZ"
    set status_format = "%r-Mutt:_%f_[ﻑﺍﺮﺳی:%M/%m]_Русский:%n_עברית:%o>_日本語:%d_한국어:%F_Tag:%t_Post:%p_Inc:%b_%l___(%s/%S)_(%P)__XYZ"
    

    and, status colours both on and off:

    
    color status    default green '日本語'
    color status    default   red '\[(.*)\]' 1
    color status    default  blue "inbox"
    color status    default yellow "/"
    

    You can still see wrapping artifacts if you resize the screen quickly, but they are immediately redrawn correctly. These artifacts also appear in Mutt. I think they might be caused by the screen changing size during the painting.

    点赞 评论 复制链接分享
  • weixin_39970064 weixin_39970064 5月前

    I can confirm, this is fixed, thanks!

    点赞 评论 复制链接分享
  • weixin_39970064 weixin_39970064 5月前

    I just noticed that this is an issue again, I am running 0b41c859a4c22ee55c442d5ec4f7def60ce816af on OSX.

    
    Mutt 1.6.2-neo (2016-06-11)
    Copyright (C) 1996-2016 Michael R. Elkins and others.
    Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
    Mutt is free software, and you are welcome to redistribute it
    under certain conditions; type `mutt -vv' for details.
    
    System: Darwin 16.1.0 (x86_64)
    hcache backend: Berkeley DB 6.1.26: (June 16, 2015)
    
    Compiler:
    Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
    Apple LLVM version 8.0.0 (clang-800.0.42.1)
    Target: x86_64-apple-darwin16.1.0
    Thread model: posix
    InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
    
    Configure options: '--with-ssl' '--enable-pop' '--enable-imap' '--enable-smtp' '--with-sasl' '--enable-hcache' '--prefix=/usr/local/' 'LDFLAGS=-L/opt/local/lib/ -L/usr/local/Cellar/openssl/1.0.2d_1/lib/' 'CPPFLAGS=-I/opt/local/include/ -I /usr/local/Cellar/openssl/1.0.2d_1/include/'
    
    Compilation CFLAGS: -Wall -pedantic -Wno-long-long -g -O2
    
    Compile options:
    +CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME -CRYPT_BACKEND_GPGME 
    -DEBUG +DL_STANDALONE +ENABLE_NLS -EXACT_ADDRESS -HOMESPOOL -LOCALES_HACK 
    -SUN_ATTACHMENT +HAVE_BKGDSET +HAVE_COLOR +HAVE_CURS_SET +HAVE_GETADDRINFO 
    +HAVE_GETSID +HAVE_ICONV +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR 
    -HAVE_LIBIDN +HAVE_META +HAVE_REGCOMP +HAVE_RESIZETERM +HAVE_START_COLOR 
    +HAVE_TYPEAHEAD +HAVE_WC_FUNCS +ICONV_NONTRANS -USE_COMPRESSED +USE_DOTLOCK 
    +USE_FCNTL -USE_FLOCK -USE_GNU_REGEX -USE_GSS +USE_HCACHE +USE_IMAP 
    -USE_NOTMUCH -USE_NNTP +USE_POP +USE_SASL +USE_SETGID -USE_SIDEBAR +USE_SMTP 
    -USE_SSL_GNUTLS +USE_SSL_OPENSSL 
    -DOMAIN
    -MIXMASTER
    -ISPELL
    SENDMAIL="/usr/sbin/sendmail"
    MAILPATH="/var/mail"
    PKGDATADIR="/usr/local/share/mutt"
    SYSCONFDIR="/usr/local/etc"
    EXECSHELL="/bin/sh"
    
    patch-quasi-delete-neo-git
    patch-progress-neo-git
    patch-status-color-neo-git
    patch-index-color-neo-git
    patch-nested-if-neo-git
    patch-cond-date-neo-git
    patch-tls-sni-neo-git
    patch-sidebar-neo-git
    patch-ifdef-neo-git
    patch-fmemopen-neo-git
    patch-initials-neo-git
    patch-trash-neo-git
    patch-limit-current-thread-neo-git
    patch-skip-quoted-neo-git
    patch-compress-neo-git
    patch-keywords-neo-git
    patch-nntp-neo-git
    patch-lmdb-neo-git
    patch-1.5.23.smime-encrypt-self.1
    
    To learn more about NeoMutt, visit: http://www.neomutt.org/
    If you find a bug in NeoMutt, please raise an issue at:
        https://github.com/neomutt/neomutt/issues
    or contact the lead developer: Richard Russon <rich.org>
    
    </rich.org>
    点赞 评论 复制链接分享
  • weixin_39719127 weixin_39719127 5月前

    Mutt 1.6.2-neo (2016-06-11)

    Hmm... the version you're running is nearly six months old.

    点赞 评论 复制链接分享
  • weixin_39970064 weixin_39970064 5月前

    Ooops, yeah, you are right. My bad! 👍

    点赞 评论 复制链接分享
  • weixin_39608479 weixin_39608479 5月前

    Sorry it's late so I can't think of embedding this on a better way, but here is me trying to reproduce this:

    https://ptpb.pw/WVL1

    Here's my info if you want to diff it:

    
    Mutt 1.6.2-neo (2016-06-11)
    Copyright (C) 1996-2016 Michael R. Elkins and others.
    Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
    Mutt is free software, and you are welcome to redistribute it
    under certain conditions; type `mutt -vv' for details.
    
    System: Linux 4.6.3-1-ARCH (x86_64)
    libidn: 1.32 (compiled with 1.32)
    hcache backend: GDBM version 1.12. 16/05/2016 (built May 31 2016 18:36:34)
    
    Compiler:
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/lto-wrapper
    Target: x86_64-pc-linux-gnu
    Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release
    Thread model: posix
    gcc version 6.1.1 20160602 (GCC) 
    
    Configure options: '--prefix=/usr' '--sysconfdir=/etc' '--enable-debug' '--enable-pgp' '--enable-gpgme' '--enable-notmuch' '--enable-pop' '--enable-imap' '--enable-smtp' '--enable-hcache' '--enable-sidebar' '--with-gss=/usr' '--with-ssl=/usr' '--with-sasl' '--with-curses=/usr' '--with-regex' '--with-idn' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'
    
    Compilation CFLAGS: -Wall -pedantic -Wno-long-long -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
    
    Compile options:
    +CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME +CRYPT_BACKEND_GPGME 
    +DEBUG -DL_STANDALONE +ENABLE_NLS -EXACT_ADDRESS -HOMESPOOL -LOCALES_HACK 
    -SUN_ATTACHMENT +HAVE_BKGDSET +HAVE_COLOR +HAVE_CURS_SET +HAVE_GETADDRINFO 
    +HAVE_GETSID +HAVE_ICONV +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR 
    +HAVE_LIBIDN +HAVE_META -HAVE_REGCOMP +HAVE_RESIZETERM +HAVE_START_COLOR 
    +HAVE_TYPEAHEAD +HAVE_WC_FUNCS +ICONV_NONTRANS -USE_COMPRESSED +USE_DOTLOCK 
    +USE_FCNTL -USE_FLOCK +USE_GNU_REGEX +USE_GSS +USE_HCACHE +USE_IMAP 
    +USE_NOTMUCH -USE_NNTP +USE_POP +USE_SASL -USE_SETGID +USE_SIDEBAR +USE_SMTP 
    -USE_SSL_GNUTLS +USE_SSL_OPENSSL 
    -DOMAIN
    -MIXMASTER
    -ISPELL
    SENDMAIL="/usr/sbin/sendmail"
    MAILPATH="/var/mail"
    PKGDATADIR="/usr/share/mutt"
    SYSCONFDIR="/etc"
    EXECSHELL="/bin/sh"
    
    patch-quasi-delete-neo-git
    patch-progress-neo-git
    patch-status-color-neo-git
    patch-index-color-neo-git
    patch-nested-if-neo-git
    patch-cond-date-neo-git
    patch-tls-sni-neo-git
    patch-sidebar-neo-git
    patch-ifdef-neo-git
    patch-fmemopen-neo-git
    patch-initials-neo-git
    patch-trash-neo-git
    patch-limit-current-thread-neo-git
    patch-skip-quoted-neo-git
    patch-compress-neo-git
    patch-keywords-neo-git
    patch-nntp-neo-git
    patch-lmdb-neo-git
    patch-1.5.23.smime-encrypt-self.1
    
    To learn more about NeoMutt, visit: http://www.neomutt.org/
    If you find a bug in NeoMutt, please raise an issue at:
        https://github.com/neomutt/neomutt/issues
    or contact the lead developer: Richard Russon <rich.org>
    
    </rich.org>
    点赞 评论 复制链接分享
  • weixin_39719127 weixin_39719127 5月前

    Can you try removing the unicode icons from your status bar. The fact that it only overflows by a few characters makes me think that the unicode isn't being measured correctly.

    Also, if you have the time, can you see if the problem exists in mutt-1.6.2.

    点赞 评论 复制链接分享

相关推荐