[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:
parent
770624c9c5
commit
f3303ce00a
|
@ -3554,6 +3554,9 @@ bool Notepad_plus::doBlockComment(comment_mode currCommentMode)
|
|||
size_t linebufferSize = lineEnd - lineStart + 2;
|
||||
TCHAR* linebuf = new TCHAR[linebufferSize];
|
||||
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue