[BUG_FIXED] Fix comment command bug for Fortran: the comment symbols should be set on the first column.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1275 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2014-08-29 07:36:51 +00:00
parent 770624c9c5
commit f3303ce00a
1 changed files with 4 additions and 1 deletions

View File

@ -3554,7 +3554,10 @@ bool Notepad_plus::doBlockComment(comment_mode currCommentMode)
size_t linebufferSize = lineEnd - lineStart + 2;
TCHAR* linebuf = new TCHAR[linebufferSize];
lineIndent = _pEditView->execute(SCI_GETLINEINDENTPOSITION, i);
Lang *lang = _pEditView->getCurrentBuffer()->getCurrentLang();
bool isFortran = lang == NULL?false:lang->_langID == L_FORTRAN;
if (!isFortran)
lineIndent = _pEditView->execute(SCI_GETLINEINDENTPOSITION, i);
_pEditView->getGenericText(linebuf, linebufferSize, lineIndent, lineEnd);
generic_string linebufStr = linebuf;