TeamREPENTOGON / TeamREPENTOGON/REPENTOGON

Imgui Multiline Text crashes when pushing up or down

Open
#934 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
345
Forks
51
Avg merge
11h 2m
Merged PRs (30d)
4

Description

ImGui.CreateMenu('test1Menu', 'Test1')
ImGui.AddElement('test1Menu', 'test1MenuItem', ImGuiElement.MenuItem, 'Test1')
ImGui.CreateWindow('test1Window', 'Test1')
ImGui.LinkWindowToElement('test1Window', 'test1MenuItem')
ImGui.AddInputTextMultiline('test1Window', 'test1TxtMultiline', '', nil, 'abcd\nefgh\nijkl')

You can press left or right on your keyboard to move the cursor within the text box. It feels natural to want to press up or down, but that causes the game to crash.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided Lua reproduction with AddInputTextMultiline and inspect the multiline text input handling reached when pressing the up or down keys. Trace the crash from that input path and verify the reproduction no longer crashes while cursor movement remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, lua
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.