Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: mmkider on March 22, 2006, 06:12:15 am

Title: user custom for '>', '<' and '='
Post by: mmkider on March 22, 2006, 06:12:15 am
If I keyin '>', '<'  and  '=', I want editor to show the  '>','<'  and '='.
but editor seem do nothing.
I find this link http://forums.codeblocks.org/index.php?topic=2639.0
I think space ability as '>', '<' and '='.
so I make this patch,see below:

                case WXK_SPACE:
      + case '>':
      + case '<':
      + case '=':
      {
          m_pList->AddChar(c);
         Destroy();
         event.Skip();
         break;
      }


[attachment deleted by admin]
Title: Re: user custom for '>', '<' and '='
Post by: MortenMacFly on March 22, 2006, 09:05:34 am
If I keyin '>'
This would break something like pMyPointer->WhatEver.
However, I've extended the cclist as following:
Code
		case WXK_SPACE:
case '(': case '[': case '<': case '=':
...which works quite well (so far). I am currently doing some more resarch if the control key is pressed (e.g. CTRL+S for saving the file will not work if CodeCompletion window is pop-up). If I get this to work I'll file a patch.
With regards, Morten.