Closed suokko closed 15 years ago
From 64f24f37c0b9530a8eb5ec54bb92436519dff20d Mon Sep 17 00:00:00 2001 From: Pauli Nieminen suokkos@gmail.com Date: Mon, 10 Aug 2009 21:28:57 +0300 Subject: [PATCH] Limit number of lines that are analysed to improve oepning speed if file is very large.
Default number of lines to analyse is 1024. Default can be changed with g:detectindent_max_lines_to_analyse variable.
doc/detectindent.txt | 4 ++++ plugin/detectindent.vim | 11 +++++++++++ 2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/doc/detectindent.txt b/doc/detectindent.txt
index 0035cb1..ed7e50b 100644
--- a/doc/detectindent.txt
+++ b/doc/detectindent.txt
@@ -30,6 +30,10 @@ Author: Ciaran McCreesh
diff --git a/plugin/detectindent.vim b/plugin/detectindent.vim
index 0e90f0b..b6bfdd1 100644
--- a/plugin/detectindent.vim
+++ b/plugin/detectindent.vim
@@ -46,6 +46,10 @@ fun!
endif
let l:idx_end = line("$")
let l:idx = 1
@@ -93,6 +97,13 @@ fun!
let l:idx = l:idx + 1
+
endif
+ endwhile
1.6.3.3
Github doesn't seem to like inline patches like that. Could you please fork the repo, apply your change and then send a pull request instead?
yes. I noticed. Seems like git hub is missing major feature that can't make attachments. Maybe there is some tags to make plain text possible in messages but not easy to know it.
Is git send-email ok? (I did send it already to your email contact in github) I can fork and send pull request if you still want it.
Yep, that's fine, thanks. I've applied your patch.
Cheers.
attaching patch for fix.