| Summary: | Editor scrolls horizontally unprompted when code folding is enabled with long lines | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Cameron Miller <cameron.miller> | ||||||
| Component: | cdt-editor | Assignee: | Project Inbox <cdt-editor-inbox> | ||||||
| Status: | NEW --- | QA Contact: | Jonah Graham <jonah> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | cedric.cato, daniel, emimull, ether80, pyvesdev, yanp.bugz, yevshif, zeratul976 | ||||||
| Version: | 7.0 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Cameron Miller
This seems to work for me. Could you attach a screen shot showing the problem? Created attachment 178991 [details]
screenshot "before" editing long line
Created attachment 178992 [details]
screenshot "after" editing long line
I've attached two images. It turns out that you don't even have to mouse click to the left of the edited text. Here is a description of the sequence of images: In the first one "before", I have scrolled horizontally to the right and I am about to remove a typo (delete the 'X'). I then press delete key and if I wait a second (I don't do anything after pressing delete). Eclipse incorrectly, automatically scrolls left (to the zero column). Note that code folding is active. I have since found that this bug is not reproducible in all cases (sorry for misleading info), but once you find a file where it does happen, it always happens for that line in the file (even after closing and reopening the file) - although I haven't tested restarting eclipse. It also seems to happen regardless of the type of edit you make to the line (e.g. delete, insert, paste all seem to make it happen). (In reply to comment #4) > Eclipse incorrectly, automatically scrolls left (to the zero column). > Note that code folding is active. > > I have since found that this bug is not reproducible in all cases (sorry for > misleading info), but once you find a file where it does happen, it always > happens for that line in the file (even after closing and reopening the file) - > although I haven't tested restarting eclipse. > > It also seems to happen regardless of the type of edit you make to the line > (e.g. delete, insert, paste all seem to make it happen). If I disable code folding (for new editors) and reopen the file, the problem goes away I could not reproduce so far. Does this only happen with lines inside an #ifdef/#ifndef/#if? The file seems to be quite large. Does it happen with small files, too? This also happens to me on WinXP, Helios SR 1, Build id: 20100917-0705 using the PHP section (haven't tried it in alternate ones). To duplicate: 1) On a long line, scroll right 2) Set the cursor anywhere on the line 3) Type in something 4) Wait a second 5) Editor horizontally scrolls all the way left If it doesn't occur when you first do it, try using the backspace one or two characters. I can send a video of it occurring, if you'd like. (In reply to comment #7) > This also happens to me on WinXP, Helios SR 1, Build id: 20100917-0705 using > the PHP section (haven't tried it in alternate ones). To duplicate: What do you mean by "PHP section"? I mean that I'm using Eclipse for PHP Developers. I use Eclipse for C/C++ developers. When I edit long lines with code folding enabled and pause writing for half a second, Eclipse scrolls horizontally. Very annoying. In Windows and Ubuntu. I can reproduce this problem, when the next line after the line you're editing begins a branch that is a folded. Bug 461122 is similar, they may have the same cause. This bug is very boring, and still "NEW" ? Good Lord... With this bug working with Cucumber feature file is a mess. Version: 2021-06 (4.20.0) Build id: 20210612-2011 Cucumber Eclipse: 1.0.0.202012131300 |