From 1de1f787e7f91a662609c933f9aca2427cc372ed Mon Sep 17 00:00:00 2001 From: Edouard Dupin Date: Mon, 5 Sep 2011 09:50:15 +0200 Subject: [PATCH] sys : corection of the keypad enter and add the shift+enter replacement with \r --- Sources/Buffer/BufferText.cpp | 38 +++++----- Sources/tools/charset/charset.cpp | 114 ++++++++++++++++++++++++++++-- avancement.boo | 3 +- test2.c | 2 +- 4 files changed, 133 insertions(+), 24 deletions(-) diff --git a/Sources/Buffer/BufferText.cpp b/Sources/Buffer/BufferText.cpp index 0acb371..56c10ea 100644 --- a/Sources/Buffer/BufferText.cpp +++ b/Sources/Buffer/BufferText.cpp @@ -977,24 +977,28 @@ void BufferText::AddChar(char * UTF8data) actionDone = true; } else if (UTF8data[0] == '\n') { Edn::VectorType tmpVect; - tmpVect.PushBack('\n'); - // if Auto indent Enable ==> we get the start of the previous line and add it to tne new one - if (true == globals::IsSetAutoIndent() ) { - int32_t l_lineStart; - // Get the begin of the line or the begin of the line befor selection - if (false == haveSelectionActive) { - l_lineStart = m_EdnBuf.StartOfLine(m_cursorPos); - } else { - l_lineStart = m_EdnBuf.StartOfLine(SelectionStart); - } - // add same characters in the temporar buffer - for (int32_t kk=l_lineStart; kk we get the start of the previous line and add it to tne new one + if (true == globals::IsSetAutoIndent() ) { + int32_t l_lineStart; + // Get the begin of the line or the begin of the line befor selection + if (false == haveSelectionActive) { + l_lineStart = m_EdnBuf.StartOfLine(m_cursorPos); } else { - break; + l_lineStart = m_EdnBuf.StartOfLine(SelectionStart); + } + // add same characters in the temporar buffer + for (int32_t kk=l_lineStart; kk unichar=%d %s\n", key, unichar, Utf8Out); for (int32_t uu=0; uu < strlen(Utf8Out); uu++) { diff --git a/avancement.boo b/avancement.boo index 52d2967..6ae02b9 100644 --- a/avancement.boo +++ b/avancement.boo @@ -9,12 +9,11 @@ * SQL - sys : replace TAB with space when Tab is pressed - sys : Catch F[1-12] ==> for user personal event - - sys : replace when TAB pressed and the selection did not selent more than one element + - sys : replace when TAB pressed and the selection did not select more than one Line - BUG : Correction du bug des entré bizard tel que les chapot et les guillemets - BUG : de sélection quand la ligne est pleine et la première ligne séctionnée. - BUG : de copier coller sur les éàè ... - BUG : sur le caplock et les caractère multiples type chapot ... - - BUG : du entrer sur le kaypad qui fait un ==> ajouter la fonction shift+enter qui cree un - BUG : italique non généré * 0.3.X : - SEARCH : get selected text in the search windows diff --git a/test2.c b/test2.c index 367bbe3..035f564 100644 --- a/test2.c +++ b/test2.c @@ -13,7 +13,7 @@ /* #if 0 */ - +^a^a^aa //#include "tools_debug.h" #include "tools_globals.h"