erinata/FingerText — Issue #23: Gray bug
Author: jvdanilo
Created: 2012-02-19 15:02:44+00:00
State: open

There is a problem with docked windows redraw when you turn off SnippetDock.

Heres a picture of it: http://dl.dropbox.com/u/2850724/gray_bug.PNG

You can see gray background gray color, and labels have white background.

The solution is to check is SnippetDock visible.

Heres a modification of your function *updateMode* around 4262 line:

void updateMode()
{
updateScintilla();
g_lastTriggerPosition = 0;
TCHAR fileType[MAX_PATH];
::SendMessage(nppData._nppHandle, NPPM_GETFILENAME, (WPARAM)MAX_PATH, (LPARAM)fileType);

if (::_tcscmp(fileType,TEXT("SnippetEditor.ftb"))==0)
{
snippetDock.toggleSave(true);
g_editorView = true;
snippetDock.switchDock(false);
updateLineCount();
} else if (g_enable)
{
snippetDock.toggleSave(false);
g_editorView = false;
**if (snippetDock.isVisible()) snippetDock.switchDock(true);**
} else
{
snippetDock.toggleSave(false);
g_editorView = false;

snippetDock.switchDock(true);
}
}