| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Notepad++
Revision: 295
Author: harrybharry
Date: 17 Jul 2008 11:47:26
Changes:Diff:| ... | ...@@ -1799,22 +1799,33 @@ | |
| 1799 | 1799 | |
| 1800 | 1800 | case SCN_MODIFIED: |
| 1801 | 1801 | { |
| 1802 | if ((notification->modificationType & SC_MOD_DELETETEXT) || (notification->modificationType & SC_MOD_INSERTTEXT)) | |
| 1802 | static bool prevWasEdit = false; | |
| 1803 | if (notification->modificationType & (SC_MOD_DELETETEXT | SC_MOD_INSERTTEXT)) | |
| 1803 | 1804 | { |
| 1805 | prevWasEdit = true; | |
| 1804 | 1806 | _linkTriggered = true; |
| 1805 | 1807 | _isDocModifing = true; |
| 1806 | 1808 | ::InvalidateRect(notifyView->getHSelf(), NULL, TRUE); |
| 1807 | 1809 | } |
| 1808 | 1810 | if (notification->modificationType & SC_MOD_CHANGEFOLD) |
| 1809 | 1811 | { |
| 1810 | notifyView->foldChanged(notification->line, | |
| 1811 | notification->foldLevelNow, notification->foldLevelPrev); | |
| 1812 | if (prevWasEdit) { | |
| 1813 | notifyView->foldChanged(notification->line, | |
| 1814 | notification->foldLevelNow, notification->foldLevelPrev); | |
| 1815 | prevWasEdit = false; | |
| 1816 | } | |
| 1817 | } | |
| 1818 | else | |
| 1819 | if (!(notification->modificationType & (SC_MOD_DELETETEXT | SC_MOD_INSERTTEXT))) | |
| 1820 | { | |
| 1821 | prevWasEdit = false; | |
| 1812 | 1822 | } |
| 1813 | 1823 | } |
| 1814 | 1824 | break; |
| 1815 | 1825 | |
| 1816 | 1826 | case SCN_SAVEPOINTREACHED: |
| 1817 | case SCN_SAVEPOINTLEFT: { | |
| 1827 | case SCN_SAVEPOINTLEFT: | |
| 1828 | { | |
| 1818 | 1829 | Buffer * buf = 0; |
| 1819 | 1830 | if (isFromPrimary) { |
| 1820 | 1831 | buf = _mainEditView.getCurrentBuffer(); |
| ... | ...@@ -2159,7 +2170,7 @@ | |
| 2159 | 2170 | } |
| 2160 | 2171 | |
| 2161 | 2172 | |
| 2162 | case SCN_MARGINCLICK: | |
| 2173 | case SCN_MARGINCLICK: | |
| 2163 | 2174 | { |
| 2164 | 2175 | if (notification->nmhdr.hwndFrom == _mainEditView.getHSelf()) |
| 2165 | 2176 | switchEditViewTo(MAIN_VIEW); |
| ... | ...@@ -2228,7 +2239,7 @@ | |
| 2228 | 2239 | break; |
| 2229 | 2240 | } |
| 2230 | 2241 | |
| 2231 | case TTN_GETDISPINFO: | |
| 2242 | case TTN_GETDISPINFO: | |
| 2232 | 2243 | { |
| 2233 | 2244 | LPTOOLTIPTEXT lpttt; |
| 2234 | 2245 |