use better a default range for :d

This commit is contained in:
hjk
2009-01-06 11:37:24 +01:00
parent bdfd5cada1
commit c729ff0f0b

View File

@@ -771,8 +771,8 @@ void FakeVimHandler::Private::handleCommand(const QString &cmd0)
if (cmd.startsWith("%"))
cmd = "1,$" + cmd.mid(1);
int beginLine = 0;
int endLine = linesInDocument();
int beginLine = -1;
int endLine = -1;
int line = readLineCode(cmd);
if (line != -1)