nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

Rapid resizing while typing in prompt-buffer (`M-l `or `Ctrl-l`)

Open logoraz opened this issue 6 months ago • 0 comments

Describe the bug The prompt buffer was simplified for 4.0.0-pre-release-9, and part of this simplification removed some padding that kept the count field "static", now it changes when typing a url search (via M-l or Ctrl-l), this creates an undesired rapid resizing "flicker" effect.

Images to show current suggestions and mark count feature pre-release-9 (that resizes rapidly while typing search):

Image

Image

Image of pre-release-8 where there was padding (does not exhibit resizing):

Image

Steps to reproduce the issue Execute M-l or Ctrl-l and start typing, then you'll notice the field on the left displaying Open URL [ #/##] will change in size as one types a url. Previously, there appeared to be a padding provided to prevent this.

Investigated and code causing this: nyxt/source/prompt-buffer.lisp --> suggestion-and-marks-count

Information

  • Fedora 42
  • build from source - electron 4.0.0-pre-release-9
  • Output of Nyxt command show-system-information:
Nyxt version: 4
Web Renderer: Electron
OS: Linux 6.14.9-300.fc42.x86_64
Lisp implementation: SBCL 2.3.11-4.fc42 (Dynamic space: 3072MB)
ASDF version: 3.3.7
Features: (:MICROS :SWANK :SLYNK :NYXT-ELECTRON :NYXT-4 :CLIPBOARD-CONTENT-METHOD
 :PARENSCRIPT :NSYMBOLS :FSET-EXT-STRINGS :FSET :SBCL+SAFE-STANDARD-READTABLE
 :NAMED-READTABLES :MACROEXPAND-ALL/ENV :MACROEXPAND-ALL :LPARALLEL
 :21BIT-CHARS :PLUMP-UTF-32 :CLOSER-MOP :CL-PPCRE-UNICODE :CL-UNICODE
 :CL-JSON-DOUBLE-FLOAT-IS-SUBSUMED :CL-JSON-SINGLE-FLOAT-IS-SUBSUMED :CHUNGA
 :FLEXI-STREAMS :CL-PPCRE :BORDEAUX-THREADS :GLOBAL-VARS
 :ASDF-SYSTEM-CONNECTIONS :LPARALLEL.WITH-CLTL2 :LPARALLEL.WITH-CAS
 :LPARALLEL.WITH-STEALING-SCHEDULER :SPLIT-SEQUENCE
 CFFI-FEATURES:FLAT-NAMESPACE CFFI-FEATURES:X86-64 CFFI-FEATURES:UNIX :CFFI
 CFFI-SYS::FLAT-NAMESPACE ALEXANDRIA::SEQUENCE-EMPTYP :FAST-IO-SV :FAST-IO
 :CL-JSON-CLOS :CL-JSON CHIPZ-SYSTEM:GRAY-STREAMS :THREAD-SUPPORT :OCICL
 :ASDF3.3 :ASDF3.2 :ASDF3.1 :ASDF3 :ASDF2 :ASDF :OS-UNIX
 :NON-BASE-CHARS-EXIST-P :ASDF-UNICODE :ARENA-ALLOCATOR :X86-64 :GENCGC :64-BIT
 :ANSI-CL :COMMON-LISP :ELF :IEEE-FLOATING-POINT :LINUX :LITTLE-ENDIAN
 :PACKAGE-LOCAL-NICKNAMES :SB-CORE-COMPRESSION :SB-LDB :SB-PACKAGE-LOCKS
 :SB-THREAD :SB-UNICODE :SBCL :UNIX)

logoraz avatar Jun 14 '25 13:06 logoraz