Bug 98231 - EDITING: the input line is not updated if moving between cells with similar content
Summary: EDITING: the input line is not updated if moving between cells with similar c...
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: needsDevEval
Depends on:
Blocks: Calc-Formula-Bar
  Show dependency treegraph
Reported: 2016-02-27 15:01 UTC by knulp79
Modified: 2021-10-02 11:32 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:

ods file that reproduces the issue and screenshot of the issue (58.86 KB, application/zip)
2016-02-27 15:01 UTC, knulp79

Note You need to log in before you can comment on or make changes to this bug.
Description knulp79 2016-02-27 15:01:11 UTC
Created attachment 123041 [details]
ods file that reproduces the issue and screenshot of the issue

See attached document, which contains similar content in cells A1 and A2. The leading characters in cell A1 are the same as A2, but the latter contains extra text. If I make the input line large enough, I expect to see the content of the selected cell. If I start from A1, then move to A2 using the down arrow, I expect the input line to show the content of A2, instead it still shows the content of A1. If I move from A1 to another cell (e.g. B1), then to A2, the content of A2 is correctly shown. I assume there must be some form of optimization trick that checks the first N characters of the cell's content and decides to update the content of the input line only if they differ. Clearly, this optimization fails if the initial content is the same but then differs.
Comment 1 raal 2016-02-27 20:54:26 UTC
I can confirm with Version: and Version:
Build ID: aaca25d67eb5ea252730cdcf555ecc04ce04a5e6
CPU Threads: 4; OS Version: Linux 4.2; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-02-24_23:58:47
Comment 2 m.a.riosv 2016-02-28 02:54:50 UTC
Seems it happens after use the arrows to move between cells.

Opening the file and use the mouse works fine for me, if I then use an arrow the issue appears also with mouse.
Comment 3 zahra 2016-02-28 13:50:54 UTC
i can confirm it on windows using different versions of libreoffice which i used versions 4.3 and above. 
sometimes when i want to navigate between cells, dont update and for example, when i move very fast using down arrow keys, nvda only says cell, cell, cell. 
and i should press control home from start search to find my last position.
Comment 4 Yousuf Philips (jay) (retired) 2016-09-07 05:23:10 UTC
Was able to see the bug in 3.5, where the multiline input control was added in. This should likely be a simple fix as it just requires a refresh of the input control.

@Eike, @Bubli: Any thoughts?
Comment 5 chrysn 2017-09-30 17:13:40 UTC
This behavior is (at least on window width dependent: It is exposed exactly if something in the first line of the text is changed (which happens to be a valid criterion for the single-row version of the input line). As soon as the window becomes wide enough for the differences to be in the first line, the display is updated as it should be.
Comment 6 QA Administrators 2018-10-01 02:52:12 UTC Comment hidden (obsolete)
Comment 7 Roman Kuznetsov 2018-10-01 06:18:28 UTC
still repro in 

Build ID: 1aa37aa6bee19099b57555a6d839992b054aa405
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-09-23_10:17:54
Locale: ru-RU (ru_RU); Calc: threaded
Comment 8 QA Administrators 2019-10-02 02:56:46 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2021-10-02 03:40:19 UTC Comment hidden (obsolete)
Comment 10 knulp79 2021-10-02 11:32:47 UTC
I cannot reproduce it any more in:
Build ID: 1:6.4.7-0ubuntu0.20.04.1
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: kf5; 
Locale: en-GB (en_GB.UTF-8); UI-Language: en-GB
Calc: threaded