Skip to content

Incorrect display of text for too long strings when displaying a message in the "Error message" #1943

@itspec-ru

Description

@itspec-ru

Rofi version (rofi -v)

1.7.5-178-git-9cea843b (git-r3/HEAD)

Configuration

https://gist.github.com/itspec-ru/c97ade4617b37a7c178e5c4fa942832c

Theme

https://gist.github.com/itspec-ru/9cb5b44dc3bda3b835d67077e367b152

Timing report

No response

Launch command

rofi -e $(echo "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345")

Step to reproduce

rofi -e $(echo "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345")

Expected behavior

In "Error message box" must displayed
12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345

Actual behavior

but in reality, the line is displayed shorter
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234

Additional information

bash script for testing

#!/bin/sh

# Incorrect calculation of the lines number for "Error message" if strings too long

# For example, I need to display two lines on the screen in the "Error message".

# string of 94 character
TEXT1="1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234
text"

# string of 95 character
TEXT2="12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345
text"

# string of 95 character +\n
TEXT3="12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345
text
"

# workarpund
TEXT4="${TEXT2}
"

# "text" is visible
rofi -e "${TEXT1}"

# !!!!!!!!!!!
# "text" is disappeared
rofi -e "${TEXT2}"

# "text" is visible
rofi -e "${TEXT3}"

# "text" is visible
rofi -e "${TEXT4}"

Using wayland display server protocol

  • No, I don't use the wayland display server protocol

I've checked if the issue exists in the latest stable release

  • Yes, I have checked the problem exists in the latest stable version

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions