diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2006-02-23 19:27:41 +0300 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2006-02-23 19:27:41 +0300 |
commit | 977c201bc0d795a96a3cc8eb80f9327dc7bb5f4b (patch) | |
tree | ef524bc6c4bfd2c4fb5332ddb81517b8ca4a97d2 /source/blender/src/header_text.c | |
parent | f146e0e04e39724a022c18beec11f82b77fb829d (diff) |
patch #3830 Fix for commenting a block of text with highlight enabled
Highlighting would not update when you un/commented a block of code.
Contributed by Ricki Myers (themyers).
Diffstat (limited to 'source/blender/src/header_text.c')
-rw-r--r-- | source/blender/src/header_text.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/header_text.c b/source/blender/src/header_text.c index 9a6236bb3f7..e0f1153f9d4 100644 --- a/source/blender/src/header_text.c +++ b/source/blender/src/header_text.c @@ -365,6 +365,7 @@ static void do_text_formatmenu(void *arg, int event) if ( txt_has_sel(text)) { txt_order_cursors(text); comment(text); + if (st->showsyntax) get_format_string(); break; } break; @@ -372,6 +373,7 @@ static void do_text_formatmenu(void *arg, int event) if ( txt_has_sel(text)) { txt_order_cursors(text); uncomment(text); + if (st->showsyntax) get_format_string(); break; } break; @@ -437,7 +439,7 @@ static uiBlock *text_formatmenu(void *arg_unused) uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Unindent|Shift Tab", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 4, ""); uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Comment", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 5, ""); - uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Uncomment", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 6, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Uncomment|Ctrl Shift D", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 6, ""); if(curarea->headertype==HEADERTOP) { uiBlockSetDirection(block, UI_DOWN); |