[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
remotes/trunk
Don Ho 10 years ago
parent 770624c9c5
commit f3303ce00a

@ -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;

Loading…
Cancel
Save