summaryrefslogtreecommitdiffstats
path: root/src/kile/kileedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kile/kileedit.cpp')
-rw-r--r--src/kile/kileedit.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/kile/kileedit.cpp b/src/kile/kileedit.cpp
index e470acb..71fa185 100644
--- a/src/kile/kileedit.cpp
+++ b/src/kile/kileedit.cpp
@@ -935,8 +935,17 @@ void EditorExtension::insertIntelligentNewline(Kate::View *view)
{
if ( m_latexCommands->isListEnv(name) )
{
+
view->keyReturn();
- view->insertText("\\item " );
+
+ if ( name == "description" )
+ {
+ view->insertText("\\item[]");
+ view->cursorLeft();
+ }
+ else
+ view->insertText("\\item ");
+
return;
}
else if ( m_latexCommands->isTabularEnv(name) || m_latexCommands->isMathEnv(name) )
@@ -2331,14 +2340,15 @@ bool EditorExtension::insertDoubleQuotes()
Kate::View *view = determineView(0L);
if ( !view ) return true;
- uint row,col;
- view->cursorPositionReal(&row,&col);
Kate::Document *doc = view->getDoc();
if( doc && m_ki->extensions()->isTexFile(doc->url()) )
doc->removeSelectedText();
else
return false;
+
+ uint row,col;
+ view->cursorPositionReal(&row,&col);
// simply insert, if we are inside a verb command
if ( insideVerb(view) || insideVerbatim(view) )