Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#644 Common smart indent macros windows flickers on scroll

open
nobody
Program (402)
7
2008-09-25
2008-09-25
dav7
No

The "Common smart indent macros" window appears to be redrawing improperly by repainting the area where the text input area is located with the text area background color inadvertently wiping the textarea out, then drawing the entire textbox on top of this repainted area, causing a flickering effect. This redraw of the entire textbox area is performed for each and every line scrolled.

To reproduce:

Open the "Program smart indent macros" window by going to Preferences -> Default Settings -> Auto Indent -> Program Smart Indent...

dropdown the Language Mode box and, unless you have another set of indent macros installed, I recommend you select C++, as its initialization code is fairly substantial.

Click the "Common / Shared Initialization..." button.

Scroll the textarea in the window that has just opened up and down relatively quickly, and observe the behavior I have described above.

-dav7

Discussion

  • dav7
    dav7
    2008-09-25

    • priority: 5 --> 7
     
  • not able to repeat this.

    I got an error message when I tried to click "OK" button of "Program Smart Indebt Macros" dialog:

    "Syntax error im smart indent initialization macro:2:
    # in the common section. Press Common/Shared Initialization above/"

    ???

    I am using a nedit variation from http://repo.or.cz/w/nedit-bw.git

    NEdit release of Sep 23, 2008

    Built on: Linux, 386, Intel C++
    Built at: Sep 23 2008, 11:57:33
    With Motif: 2.2.3 [@(#)Motif Version 2.2.4]
    Running Motif: 2.2 [unknown]
    Server: The X.Org Foundation 10400090
    Visual: 24-bit TrueColor (ID 0x23, Default)
    Locale: en_US.UTF-8
    NEdit Shell: /bin/csh
    Default Shell: /bin/csh

     
  • Bert Wesarg
    Bert Wesarg
    2008-09-25

    @dav7:

    I can't reproduce it either. Can you provide the output from 'nedit -version' and can you try with the latest CVS version?

    @John:

    I can't reproduce it. Can you try it in a clean NEDIT_HOME env, i.e. make new empty dir, cd into it, run 'NEDIT_HOME=$PWD nedit'.

    Anyway, because you are using an unofficial version, you should report such things to the 'distributor' (thats me in this case). Only if its reproducible with official code, you should report it in this forum.

    Thanks to both of you.

     
  • I've fixed my problem but still can't reproduce the reported problem.

    For me, I had to delete the following text in the "Language Specific Initialization Macro Commands and Definitions" section:

    "
    # C++ Macros and tuning parameters are shared with C, and are declared
    # in the common section. Press Common / Shared Initialization above.
    "

    Otherwise when I clicked the "OK" to finish all the settings I got an error as mentioned before.

    JF

     
  • dav7
    dav7
    2008-09-26

    Hi lebert, my output from nedit -version is as follows.

    NEdit 5.5
    Sep 30, 2004

    Built on: Linux, Pentium Pro, GNU C
    Built at: Dec 4 2007, 09:31:43
    With Motif: 2.1.0 [@(#)GNU/LessTif Version 2.1 Release 0.95.0] (UNTESTED)
    Running Motif: 2.1 [unknown]
    Server: The X.Org Foundation 10500000
    Visual: 24-bit TrueColor (ID 0x21, Default)
    Locale: en_US.utf8

    Now that I think about it, it could be LessTif at fault *although no other text area I've seen exhibits this issue* (including, obviously, the main text editing widget).

    I might build the latest nedit version from CVS tomorrow/soon. :P

    -dav7