From d2fffd4feecddc9cbf0bcc25b39fd9e83587a133 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Tue, 15 Jan 2019 16:32:32 -0700 Subject: [PATCH] not sure --- .idea/workspace.xml | 39 ++++++++++++++++++++++----------------- notepostcli/notepost.py | 6 ++++-- 2 files changed, 26 insertions(+), 19 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 76767f0..023cf69 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,10 +2,7 @@ - - - - @@ -228,7 +233,7 @@ - + @@ -242,13 +247,6 @@ - - - - - - - @@ -259,10 +257,17 @@ + + + + + + + - - + + diff --git a/notepostcli/notepost.py b/notepostcli/notepost.py index c61ef24..6caf6cb 100755 --- a/notepostcli/notepost.py +++ b/notepostcli/notepost.py @@ -113,7 +113,7 @@ def editnote(note): def editmenu(): global notes rows, columns = os.popen('stty size', 'r').read().split() - linelength = int(columns) - 10 + linelength = int(columns) - 5 clearscreen() loadnotes() i = 1 @@ -129,9 +129,11 @@ def editmenu(): if linecount > 5: print("\n(" + str(len(note["content"].splitlines())) + " more lines" + ")", end='') break - print("\n " + line[0:linelength].ljust(linelength), end='') + print("\n " + line[0:linelength].ljust(linelength), end='') if len(line) > linelength: print("...", end='') + else: + print(" ", end='') linecount += 1 i += 1 resetcolor()