summary refs log tree commit diff
diff options
context:
space:
mode:
authorJussi Kuokkanen <jussi.kuokkanen@protonmail.com>2020-08-31 18:07:29 +0300
committerJussi Kuokkanen <jussi.kuokkanen@protonmail.com>2020-08-31 18:07:29 +0300
commitbb4636885df0dbfe9d2f632d02636c8e35947ae9 (patch)
treeee51fa84053f705db40c8328c07236515515562f
parentget completion string based on trigger position instead of current word (diff)
downloadnheko-bb4636885df0dbfe9d2f632d02636c8e35947ae9.tar.xz
remove comment
-rw-r--r--src/TextInputWidget.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/TextInputWidget.h b/src/TextInputWidget.h
index e4bd9b96..6003551e 100644
--- a/src/TextInputWidget.h
+++ b/src/TextInputWidget.h
@@ -124,21 +124,6 @@ private:
                 tc.movePosition(QTextCursor::EndOfBlock, QTextCursor::KeepAnchor);
                 return tc.selectedText();
         }
-        /*QString wordUnderCursor()
-        {
-                auto tc          = textCursor();
-                auto editor_text = toPlainText();
-                // Text before cursor
-                auto text = editor_text.chopped(editor_text.length() - tc.position());
-                // Revert to find the first space (last before cursor in the original)
-                std::reverse(text.begin(), text.end());
-                auto space_idx = text.indexOf(" ");
-                if (space_idx > -1)
-                        text.chop(text.length() - space_idx);
-                // Revert back
-                std::reverse(text.begin(), text.end());
-                return text;
-        }*/
 
         dialogs::PreviewUploadOverlay previewDialog_;