[RELEASE_475] Fix invisible tabs bug while closing (Finally).

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@104 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
donho 2008-01-14 19:40:10 +00:00
parent c83d5801c9
commit 3412c5ce5d
7 changed files with 39 additions and 24 deletions

View File

@ -1,11 +1,12 @@
Notepad++ v4.7.4 fixed bugs and added features (from v4.7.4) :
Notepad++ v4.7.5 fixed bugs and added features (from v4.7.3) :
1. Fix the horizon scroll bar flicker bug.
2. Fix the full screen (F11) bug regarding multi-display issue
3. Explorer context menu is available under xp 64 bits et vista 64 bits.
4. Add YAML language.
5. Fix the crash issue of window dialog while clicking Sort button without selected item.
6. Enhance Sort feature GUI part - Enable Sort button only after clicking on the column tab; Disable Sort button after sorting.
1. Fix invisible tabs bug while closing.
2. Fix the horizon scroll bar flicker bug.
3. Fix the full screen (F11) bug regarding multi-display issue
4. Explorer context menu is available under xp 64 bits et vista 64 bits.
5. Add YAML language.
6. Fix the crash issue of window dialog while clicking Sort button without selected item.
7. Enhance Sort feature GUI part - Enable Sort button only after clicking on the column tab; Disable Sort button after sorting.
Included plugins :

View File

@ -17,16 +17,16 @@
; Define the application name
!define APPNAME "Notepad++"
!define APPNAMEANDVERSION "Notepad++ v4.7.4"
!define APPNAMEANDVERSION "Notepad++ v4.7.5"
!define VERSION_MAJOR 4
!define VERSION_MINOR 74
!define VERSION_MINOR 75
; Main Install settings
Name "${APPNAMEANDVERSION}"
InstallDir "$PROGRAMFILES\Notepad++"
InstallDirRegKey HKLM "Software\${APPNAME}" ""
OutFile "..\bin\npp.4.7.4.Installer.exe"
OutFile "..\bin\npp.4.7.5.Installer.exe"
@ -485,7 +485,7 @@ GLOBAL_INST:
SectionEnd
Section "Context Menu Entry" explorerContextMenu
SetOverwrite on
SetOverwrite try
SetOutPath "$INSTDIR\"
${If} ${RunningX64}
File /oname=$INSTDIR\nppcm.dll "..\bin\nppcm64.dll"

View File

@ -119,6 +119,10 @@ const char * DocTabView::closeCurrentDoc()
int i2close = _pView->closeCurrentDoc(i2activate);
TabBar::deletItemAt(i2close);
if (i2activate > 1)
TabBar::activateAt(i2activate-1);
TabBar::activateAt(i2activate);
}
return _pView->getCurrentTitle();

View File

@ -18,9 +18,9 @@
#ifndef RESOURCE_H
#define RESOURCE_H
#define NOTEPAD_PLUS_VERSION "Notepad++ v4.7.4"
#define VERSION_VALUE "4.74\0" // should be X.Y : ie. if VERSION_DIGITALVALUE == 4, 7, 1, 0 , then X = 4, Y = 71
#define VERSION_DIGITALVALUE 4, 7, 4, 0
#define NOTEPAD_PLUS_VERSION "Notepad++ v4.7.5"
#define VERSION_VALUE "4.75\0" // should be X.Y : ie. if VERSION_DIGITALVALUE == 4, 7, 1, 0 , then X = 4, Y = 71
#define VERSION_DIGITALVALUE 4, 7, 5, 0
#ifndef IDC_STATIC
#define IDC_STATIC -1

View File

@ -573,11 +573,11 @@
>
</File>
<File
RelativePath="..\src\resource.h"
RelativePath="..\src\WinControls\Preference\resource.h"
>
</File>
<File
RelativePath="..\src\WinControls\Preference\resource.h"
RelativePath="..\src\resource.h"
>
</File>
<File

View File

@ -765,6 +765,7 @@
#define SCE_YAML_DOCUMENT 6
#define SCE_YAML_TEXT 7
#define SCE_YAML_ERROR 8
#define SCE_YAML_OPERATOR 9
#define SCE_TEX_DEFAULT 0
#define SCE_TEX_SPECIAL 1
#define SCE_TEX_GROUP 2

View File

@ -20,6 +20,10 @@
#include "Scintilla.h"
#include "SciLexer.h"
#ifdef SCI_NAMESPACE
using namespace Scintilla;
#endif
static const char * const yamlWordListDesc[] = {
"Keywords",
0
@ -98,7 +102,8 @@ static void ColouriseYAMLLine(
if (lineBuffer[i] == '\'' || lineBuffer[i] == '\"') {
bInQuotes = !bInQuotes;
} else if (lineBuffer[i] == ':' && !bInQuotes) {
styler.ColourTo(startLine + i, SCE_YAML_IDENTIFIER);
styler.ColourTo(startLine + i - 1, SCE_YAML_IDENTIFIER);
styler.ColourTo(startLine + i, SCE_YAML_OPERATOR);
// Non-folding scalar
i++;
while ((i < lengthLine) && isspacechar(lineBuffer[i]))
@ -126,6 +131,10 @@ static void ColouriseYAMLLine(
styler.ColourTo(endPos, SCE_YAML_ERROR);
return;
}
} else if (lineBuffer[i] == '#') {
styler.ColourTo(startLine + i - 1, SCE_YAML_DEFAULT);
styler.ColourTo(endPos, SCE_YAML_COMMENT);
return;
}
styler.SetLineState(currentLine, YAML_STATE_VALUE);
if (lineBuffer[i] == '&' || lineBuffer[i] == '*') {