]>
Commit | Line | Data |
---|---|---|
e8da1929 SS |
1 | From 02424bfcd719bbaa695f4e1c3ef17ad91b0d23c0 Mon Sep 17 00:00:00 2001 |
2 | From: Lubomir Rintel <lkundrak@v3.sk> | |
3 | Date: Thu, 28 Jan 2016 20:57:22 +0100 | |
4 | Subject: [PATCH] unexpand: fix blank line handling | |
5 | ||
6 | echo '' |./src/unexpand -a | |
7 | ||
8 | Really? | |
9 | --- | |
10 | src/unexpand.c | 2 +- | |
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
12 | ||
13 | diff --git a/src/unexpand.c b/src/unexpand.c | |
14 | index 569a7ee..3bbbd66 100644 | |
15 | --- a/src/unexpand.c | |
16 | +++ b/src/unexpand.c | |
17 | @@ -233,7 +233,7 @@ unexpand (void) | |
18 | next_tab_column = column; | |
19 | tab_index -= !!tab_index; | |
20 | } | |
21 | - else | |
22 | + else if (!mb_iseq (c, '\n')) | |
23 | { | |
24 | column += mb_width (c); | |
25 | if (!column) | |
26 | -- | |
27 | 2.7.4 | |
28 |