On Thu, Mar 3, 2011 at 11:36 AM, wrote:
>
> Using the latest pyclewn I have noticed the cursor disappears in the
> active vim window after a pyclewn/gdb command (eg. interrupt,
> break).  A cursor movement key (eg 'j') will cause it to reappear.
>  I'm not sure if this was a problem before but have only just
> noticed it.
>


Thanks for the bug report. This is a bug in Vim. The attached patch to
Vim 7.3.138 (the latest mercurial changeset in Vim repo) fixes the bug.
I will submit this patch to Vim devel mailing list.


> If the active window was the (clewn)_console prior to the command,
> the active window (and later cursor) switches to the other (I
> generally use two: console and source).  This may however be fixing
> a previous minor irritation in that an interrupt with the console
> window active would load the current source into it rather than the
> existing source window: I usually keep the source window active for
> this reason.
>

Yes pyclewn may load the current source in the gdb console when it is
the active window. This is because the netbeans interface does not
provide any information on windows (only on buffers). So it is better
to avoid having the console as an active window.


--
Xavier

Les Chemins de Lokoti: http://lokoti.alwaysdata.net
diff --git a/src/netbeans.c b/src/netbeans.c
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -191,6 +191,7 @@
     changed_window_setting();
     update_screen(CLEAR);
     setcursor();
+    cursor_on();
     out_flush();
 #ifdef FEAT_GUI
     if (gui.in_use)
@@ -2248,6 +2249,7 @@
 	    update_topline();		/* scroll to show the line */
 	    update_screen(VALID);
 	    setcursor();
+	    cursor_on();		/* redrawing may have switched it off */
 	    out_flush();
 #ifdef FEAT_GUI
 	    if (gui.in_use)
@@ -2642,6 +2644,7 @@
     {
 	update_screen(NOT_VALID);
 	setcursor();
+        cursor_on();	    /* redrawing may have switched it off */
 	out_flush();
 #ifdef FEAT_GUI
 	if (gui.in_use)
@@ -3008,6 +3011,7 @@
     changed_window_setting();
     update_screen(CLEAR);
     setcursor();
+    cursor_on();
     out_flush();
 #ifdef FEAT_GUI
     if (gui.in_use)
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Pyclewn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyclewn-general

Reply via email to