[all-commits] [llvm/llvm-project] 850e90: [lldb] Support Unicode in the prompt (#66312)

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Sep 13 20:08:19 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 850e90c47b3caaadb78581fb7a93655a8a60cbe0
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2023-09-13 (Wed, 13 Sep 2023)

  Changed paths:
    M lldb/include/lldb/Host/Editline.h
    M lldb/packages/Python/lldbsuite/test/lldbpexpect.py
    M lldb/source/Host/common/Editline.cpp
    M lldb/test/API/terminal/TestEditline.py

  Log Message:
  [lldb] Support Unicode in the prompt (#66312)

Account for Unicode when computing the prompt column width. Previously,
the string length (i.e. number of bytes) rather than the width of the
Glyph was used to compute the cursor position. The result was that the
cursor would be offset to the right when using a prompt containing

More information about the All-commits mailing list